Re: PostgreSQL 15.5 stops processing user queries

2023-12-21 Thread Tom Lane
Andrey Zhidenkov writes: > We have encountered an issue with our PostgreSQL 15.5 installation. The > problem is that > PostgreSQL server periodically falls into a state when it accepts new > connections but > doesn't execute any queries. The session which runs a query hangs and > cannot be

Re: Changing a schema's name with function1 calling function2

2023-12-21 Thread Adrian Klaver
On 12/21/23 05:47, Wilma Wantren wrote: Now as text mail, sorry. I accidentally posted the following to the bugs mailing list first. Sorry for this, now as a question here. The company I work for used to only use Oracle databases for their program and now also supports PostgreSQL. With

Unlogged partitionned tables and hot standbys

2023-12-21 Thread Phil Florent
Hi, Today I corrected a bug on my perf tool, I had forgotten to set the unlogged attribute on the table partitions if end-user wanted to miminize the overhead of data collection and purges. Then I played a bit with partitioning, unlogged attribute and hot standby just for fun and I am a bit

Re: Help understanding server-side logging (and more...)

2023-12-21 Thread Adrian Klaver
On 12/21/23 03:05, Dominique Devienne wrote: If by any chance, anyone has seen this kind of behavior before, in a similar context or not, and has suggestions on how we could further troubleshoot this (on the PostgreSQL server-side, but also the Node.JS client-side, why not), that would be

what do you do after pg_walreset ?

2023-12-21 Thread Johnathan Tiamoh
Hello, Please I wish to find out what you do after running pg_walreset. I made a mistake and deleted my data directory with all its content. I then restore with 1 day old backups, after that i could start unless i did pg_walreset. 1, I wish to find out what to do after i have started

Re: How to generate random bigint

2023-12-21 Thread Peter J. Holzer
On 2023-12-21 00:06:39 -0600, Phillip Diffley wrote: > Postgres's random() function generates a random double. That can be converted > to a random int for smaller integers, but a double can't represent all of the > values in a bigint. Is there a recommended way to generate a random bigint in >

Re: Help understanding server-side logging (and more...)

2023-12-21 Thread Peter J. Holzer
On 2023-12-21 12:05:41 +0100, Dominique Devienne wrote: > FWIW, the symptoms they are experiencing is that initially all queries > are fast, then they start to get longer and longer, to the point all > services accessing PostgreSQL grind to a halt and basically hang. > While that happens, one can

PostgreSQL 15.5 stops processing user queries

2023-12-21 Thread Andrey Zhidenkov
Hello all, We have encountered an issue with our PostgreSQL 15.5 installation. The problem is that PostgreSQL server periodically falls into a state when it accepts new connections but doesn't execute any queries. The session which runs a query hangs and cannot be terminated via SIGINT (even if

Re: "invalid contrecord" error on replica

2023-12-21 Thread Adrien Nayrat
I received a question about this error. Just for the record, if someone encounter the same issue. It has been fixed in ff9f111bce24 TL;DR : update your instance :) https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=ff9f111bce24 Fix WAL replay in presence of an incomplete record

Help understanding server-side logging (and more...)

2023-12-21 Thread Dominique Devienne
Hi. Another team (than mine) has been trying to troubleshoot hang issues in their Node/JS/TS-based mid-tier services, after a switch from MySQL to PostgreSQL. They run PostgreSQL in a Linux container (see PID [1] below), unlike us. They started looking at the PostgreSQL server-side logs, but with

Re: Help understanding server-side logging (and more...)

2023-12-21 Thread Julien Rouhaud
Hi, On Thu, Dec 21, 2023 at 12:05:41PM +0100, Dominique Devienne wrote: > Hi. Another team (than mine) has been trying to troubleshoot hang issues in > their Node/JS/TS-based mid-tier services, > after a switch from MySQL to PostgreSQL. They run PostgreSQL in a Linux > container (see PID [1]

Re: Read write performance check

2023-12-21 Thread veem v
Can someone please guide me, if any standard scripting is available for doing such read/write performance test? Or point me to any available docs? On Wed, 20 Dec, 2023, 10:39 am veem v, wrote: > Thank you. > > That would really be helpful if such test scripts or similar setups are > already

Changing a schema's name with function1 calling function2

2023-12-21 Thread Wilma Wantren
­I accidentally posted the following to the bugs mailing list first. Sorry for this, now as a question here.The company I work for used to only use Oracle databases for their program and now also supports PostgreSQL.With Postgres, we create a database, a user and a schema, which all have the same

Changing a schema's name with function1 calling function2

2023-12-21 Thread Wilma Wantren
Now as text mail, sorry. I accidentally posted the following to the bugs mailing list first. Sorry for this, now as a question here. The company I work for used to only use Oracle databases for their program and now also supports PostgreSQL. With Postgres, we create a database, a user and a