Open lxndrcx opened 7 months ago
This is not currently possible, but this is a great feature request. Thanks!
If anyone wants to submit a pull request for this, it looks like one way to implement it would be to call dbsetopt()
and set DBISOLATION
: https://github.com/FreeTDS/freetds/blob/4dc87b0800b67f3dbf4eddbdf35eab3bc133d2f7/src/dblib/dblib.c#L4495
Of course, another way would be to execute SET TRANSACTION ISOLATION LEVEL
.
Question
Is there a way (or could there be) to set the
TRANSACTION ISOLATION LEVEL
for the whole connection? I am connecting to a database with hundreds of tables, so I am using the schema import to get them all.I have seen https://github.com/tds-fdw/tds_fdw/issues/200 and I understand I control it on a table-by-table basis using
WITH
in queries. This is not convenient for hundreds of tables.I think it's possible to set the isolation level per connection (or at least per transaction), so it would be helpful to be able to set that in the Foreign Server configuration.
Thanks in advance for reading my question.
I'll include version information even though I'm not suggesting there is an issue:
Operating system
Version of tds_fdw
Version of PostgreSQL
Version of FreeTDS