Re: Occasional 9.6.10 PMChildFlags fatal error, possibly due to >2 parallel gathers

From: Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
To: Chris Snook <csnook(at)cloudflare(dot)com>
Cc: PostgreSQL Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Occasional 9.6.10 PMChildFlags fatal error, possibly due to >2 parallel gathers
Date: 2019-02-13 05:54:47
Message-ID: CAEepm=0wo3ZtoAVnBPNoOTR1t9RuSyU2rexaOaD4RoGpR2e9sg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Wed, Feb 13, 2019 at 3:41 PM Chris Snook <csnook(at)cloudflare(dot)com> wrote:
> For more context, I got these tightly packed around the first crash, with the first and last messages repeated hundreds of 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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Chris Snook 2019-02-13 06:30:10 Re: Occasional 9.6.10 PMChildFlags fatal error, possibly due to >2 parallel gathers
Previous Message Guy Rouillier 2019-02-13 04:59:57 Re[2]: BUG #15626: Incorrect version number shown in BigSQL installation