Re: Occasional 9.6.10 PMChildFlags fatal error, possibly due to >2parallel gathers - Mailing list pgsql-bugs

From Thomas Munro
Subject Re: Occasional 9.6.10 PMChildFlags fatal error, possibly due to >2parallel gathers
Date
Msg-id CAEepm=0wo3ZtoAVnBPNoOTR1t9RuSyU2rexaOaD4RoGpR2e9sg@mail.gmail.com
Whole thread Raw
In response to Occasional 9.6.10 PMChildFlags fatal error, possibly due to >2parallel gathers  (Chris Snook <csnook@cloudflare.com>)
Responses Re: Occasional 9.6.10 PMChildFlags fatal error, possibly due to >2parallel gathers
List pgsql-bugs
On Wed, Feb 13, 2019 at 3:41 PM Chris Snook <csnook@cloudflare.com> wrote:
> For more context, I got these tightly packed around the first crash, with the first and last messages repeated
hundredsof times:
 
>
> FATAL:  sorry, too many clients already
> FATAL:  sorry, too many clients already
> FATAL:  sorry, too many clients already
> FATAL:  no free slots in PMChildFlags array
> WARNING:  could not remove shared memory segment "/PostgreSQL.1407760088": No such file or directory
> FATAL:  semop(id=2293786) failed: Invalid argument
> FATAL:  semop(id=2293786) failed: Invalid argument
> FATAL:  semctl(2064403, 7, SETVAL, 0) failed: Invalid argument
> FATAL:  semop(id=2621476) failed: Invalid argument
> FATAL:  semop(id=2621476) failed: Invalid argument
> FATAL:  semctl(2293786, 1, SETVAL, 0) failed: Invalid argument
> FATAL:  semctl(2621476, 10, SETVAL, 0) failed: Invalid argument
> WARNING:  could not remove shared memory segment "/PostgreSQL.1621779631": No such file or directory

Any chance you created a cronjob that runs as user "postgres" (or
whatever user the PostgreSQL cluster runs as), or logged in as that
user manually for some reason?  Systemd likes to blow away global IPC
resources associated with users when they log out.

https://www.postgresql.org/docs/11/kernel-resources.html#SYSTEMD-REMOVEIPC

-- 
Thomas Munro
http://www.enterprisedb.com


pgsql-bugs by date:

Previous
From: "Guy Rouillier"
Date:
Subject: Re[2]: BUG #15626: Incorrect version number shown in BigSQL installation
Next
From: Chris Snook
Date:
Subject: Re: Occasional 9.6.10 PMChildFlags fatal error, possibly due to >2parallel gathers