Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Does tds_fdw lock tables? #355

Open
RodolfoFerreira-FitCard opened this issue Mar 21, 2024 · 0 comments
Open

Question: Does tds_fdw lock tables? #355

RodolfoFerreira-FitCard opened this issue Mar 21, 2024 · 0 comments

Comments

@RodolfoFerreira-FitCard

Version of tds_fdw

2.0.3

Version of PostgreSQL

PostgreSQL 15.3 on aarch64-unknown-linux-gnu, compiled by aarch64-unknown-linux-gnu-gcc (GCC) 9.5.0, 64-bit

Hello everyone!

Currently, I have a scenario where the product I develop looks to a PostgreSQL database, but needs data from a SQL Server database, so, we use tds_fdw to help us with that.

In the company scenario, we have other products that are only in SQL Server that uses that same SQL Server database that I use to query some informations. The thing is that we've seen a massive performance problem happening, and we don't know if it's just a coincidence or if tds_fdw has something to do with it, because it started a little after we deployed the code with tds.

My question is if tds_fdw locks tables while querying the foreign server. That is one of the causes of the performance issue, and in our product we do some 2s long queries in an database that can have concurrent queries from sql server connections from other products. As I see, the behaviour should be the same as if we were querying from SQL Server itself. Is that the case?

I should say that we created the foreign server and imported the full dbo schema as foreign tables.

I appreciate your help in advance!

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant