Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jAEzx-0006Ul-Rg for pgsql-admin@arkaria.postgresql.org; Fri, 06 Mar 2020 15:34:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jAEzv-0000Va-W6 for pgsql-admin@arkaria.postgresql.org; Fri, 06 Mar 2020 15:34:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jAEzv-0000Ue-MH for pgsql-admin@lists.postgresql.org; Fri, 06 Mar 2020 15:34:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jAEzs-0004QZ-UC for pgsql-admin@postgresql.org; Fri, 06 Mar 2020 15:34:47 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 026FYfGk023560; Fri, 6 Mar 2020 10:34:42 -0500 From: Tom Lane To: Scott Ribe cc: pgsql-admin Subject: Re: shm In-reply-to: <7A7FD3C8-763B-4B29-A6FC-720D4DDB6EB7@elevated-dev.com> References: <565DBAD4-E79D-4EE0-89C4-ABE33AD0C0A7@elevated-dev.com> <1582.1583419905@sss.pgh.pa.us> <7A7FD3C8-763B-4B29-A6FC-720D4DDB6EB7@elevated-dev.com> Comments: In-reply-to Scott Ribe message dated "Fri, 06 Mar 2020 07:06:50 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <23558.1583508881.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 06 Mar 2020 10:34:41 -0500 Message-ID: <23559.1583508881@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Scott Ribe writes: >> On Mar 5, 2020, at 7:51 AM, Tom Lane wrote: >> We still allocate a small shm block as a means of counting live backend= s >> (since the SysV spec includes an "nattch" count but mmap'd segments do >> not provide that info). Should only be ~50 bytes though. > I recreated the error so I could post it here: > ERROR 53100 (disk_full) could not resize shared memory segment "/Postgre= SQL.935653392" to 1048576 bytes: No space left on device=EF=BB=BF Oh, if it's trying to resize then this is dynamic shared memory, not the small static block. On most platforms we use POSIX shm_open() for that purpose, not SysV-style shm ... what have you got dynamic_shared_memory_type set to? It could be that the space limit applies to both APIs anyway, in which case your choices are to raise the limit or disable parallel query. regards, tom lane