Re: ERROR: too many dynamic shared memory segment

2020-11-19 Thread Thomas Munro
On Wed, Nov 18, 2020 at 10:55 AM Thomas Munro wrote: > > Should this commit be back-ported to earlier versions of postgres to > > prevent this error in other versions? > > Yeah, that seems like a good idea anyway. I will do that tomorrow, > barring objections. Done, for 10, 11 and 12.

Re: ERROR: too many dynamic shared memory segment

2020-11-17 Thread Thomas Munro
On Wed, Nov 18, 2020 at 10:55 AM Thomas Munro wrote: > a few times those ways, also due to an ancient DSM leak that was fixed > in 93745f1e (fix present in 12.4). I take that bit back -- I misremembered -- that was a leak of the actual memory once slots were exhausted, not a leak of the slot.

Re: ERROR: too many dynamic shared memory segment

2020-11-17 Thread Thomas Munro
On Wed, Nov 18, 2020 at 4:21 AM Ben Kanouse wrote: > My database is experiencing a 'ERROR: too many dynamic shared memory > segment' error from time to time. It seems to happen most when traffic > is high, and it happens with semi-simple select statements that run a > para

ERROR: too many dynamic shared memory segment

2020-11-17 Thread Ben Kanouse
Hello, My database is experiencing a 'ERROR: too many dynamic shared memory segment' error from time to time. It seems to happen most when traffic is high, and it happens with semi-simple select statements that run a parallel query plan with a parallel bitmap heap scan. It is currently