Re: tds_fdw : Severe performance degradation from postgresql 10.23 to 16.4

2024-11-13 Thread Achilleas Mantzios - cloud
Dear All false alert, I run strace and it was obvious the slow one was producing huge debug output, while the fast one did not. It was not even a tds_fdw issue. It was freetds. Turned out we have forgotten enabled debugging inside the freetds configuration. You will ask me we did I get this e

Re: tds_fdw : Severe performance degradation from postgresql 10.23 to 16.4

2024-11-12 Thread Achilleas Mantzios - cloud
On 11/12/24 21:37, Tom Lane wrote: Achilleas Mantzios writes: Our sysadm created the system debian Debian GNU/Linux 12 (bookworm)with postgres as user 1000. Now at some point we realized that whenever we run a pgsql cluster with another user (I found that after spending two good days testing)

Re: tds_fdw : Severe performance degradation from postgresql 10.23 to 16.4

2024-11-12 Thread Tomas Vondra
On 11/12/24 20:37, Tom Lane wrote: > Achilleas Mantzios writes: >> Our sysadm created the system debian Debian GNU/Linux 12 (bookworm)with >> postgres as user 1000. Now at some point we realized that whenever we >> run a pgsql cluster with another user (I found that after spending two >> goo

Re: tds_fdw : Severe performance degradation from postgresql 10.23 to 16.4

2024-11-12 Thread Tom Lane
Achilleas Mantzios writes: > Our sysadm created the system debian Debian GNU/Linux 12 (bookworm)with > postgres as user 1000. Now at some point we realized that whenever we > run a pgsql cluster with another user (I found that after spending two > good days testing), the above query runs in abo

Re: tds_fdw : Severe performance degradation from postgresql 10.23 to 16.4

2024-11-12 Thread Achilleas Mantzios
Στις 12/11/24 15:17, ο/η Tomas Vondra έγραψε: On 11/12/24 11:37, Achilleas Mantzios - cloud wrote: ... We run perf on both systems for 90 seconds to make sure that it included at least two runs of the slow system, and we attach both outputs. We run perf as : sudo perf record -g -p -- sleep 9

Re: tds_fdw : Severe performance degradation from postgresql 10.23 to 16.4

2024-11-12 Thread Tomas Vondra
On 11/12/24 11:37, Achilleas Mantzios - cloud wrote: > > ... > > We run perf on both systems for 90 seconds to make sure that it included > at least two runs of the slow system, and we attach both outputs. We run > perf as : > > sudo perf record -g -p -- sleep 90 > > it strikes me that we dont

Re: tds_fdw : Severe performance degradation from postgresql 10.23 to 16.4

2024-11-10 Thread Achilleas Mantzios
Στις 9/11/24 17:41, ο/η Tomas Vondra έγραψε: On 11/9/24 15:05, Achilleas Mantzios wrote: Στις 9/11/24 12:49, ο/η Tomas Vondra έγραψε: On 11/8/24 20:32, Achilleas Mantzios wrote: Dear All, we have hit a serious performance regression going from 10.23 → 16.4 as far as tds_fdw (MS SQL) FDW is

Re: tds_fdw : Severe performance degradation from postgresql 10.23 to 16.4

2024-11-09 Thread Tomas Vondra
On 11/9/24 15:05, Achilleas Mantzios wrote: > > Στις 9/11/24 12:49, ο/η Tomas Vondra έγραψε: >> On 11/8/24 20:32, Achilleas Mantzios wrote: >>> Dear All, >>> >>> we have hit a serious performance regression going from 10.23 → 16.4 as >>> far as tds_fdw (MS SQL) FDW is concerned. To cut the long

Re: tds_fdw : Severe performance degradation from postgresql 10.23 to 16.4

2024-11-09 Thread Achilleas Mantzios
Στις 9/11/24 16:05, ο/η Achilleas Mantzios έγραψε: Στις 9/11/24 12:49, ο/η Tomas Vondra έγραψε: On 11/8/24 20:32, Achilleas Mantzios wrote: Dear All, we have hit a serious performance regression going from 10.23 → 16.4 as far as tds_fdw (MS SQL) FDW is concerned. To cut the long story shor

Re: tds_fdw : Severe performance degradation from postgresql 10.23 to 16.4

2024-11-09 Thread Achilleas Mantzios
Στις 9/11/24 12:49, ο/η Tomas Vondra έγραψε: On 11/8/24 20:32, Achilleas Mantzios wrote: Dear All, we have hit a serious performance regression going from 10.23 → 16.4 as far as tds_fdw (MS SQL) FDW is concerned. To cut the long story short, I recreated the good fast “old” (pgsql 10) setup on

Re: tds_fdw : Severe performance degradation from postgresql 10.23 to 16.4

2024-11-09 Thread Tomas Vondra
On 11/8/24 20:32, Achilleas Mantzios wrote: > Dear All,  > > we have hit a serious performance regression going from 10.23 → 16.4 as > far as tds_fdw (MS SQL) FDW is concerned. To cut the long story short, I > recreated the good fast “old” (pgsql 10) setup on the same vm as the > slow “new” (pgsql