Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWbgt-0004o6-2B for pgsql-general@arkaria.postgresql.org; Wed, 03 Jan 2018 05:34:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWbgs-000339-BS for pgsql-general@arkaria.postgresql.org; Wed, 03 Jan 2018 05:34:14 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eWbgs-00032z-0u for pgsql-general@lists.postgresql.org; Wed, 03 Jan 2018 05:34:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eWbgl-0001J6-4M for pgsql-general@postgresql.org; Wed, 03 Jan 2018 05:34:12 +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 w035Y4jm015384; Wed, 3 Jan 2018 00:34:04 -0500 From: Tom Lane To: Thomas Munro cc: Thuc Nguyen Canh , Forums postgresql Subject: Re: Query error: could not resize shared memory segment In-reply-to: References: <1108.1514954390@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Wed, 03 Jan 2018 18:16:22 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15382.1514957644.1@sss.pgh.pa.us> Date: Wed, 03 Jan 2018 00:34:04 -0500 Message-ID: <15383.1514957644@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: > On Wed, Jan 3, 2018 at 6:13 PM, Thuc Nguyen Canh > wrote: >> mount | grep /dev/shm >> => shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=65536k) > Bingo. Somehow your container tech is limiting shared memory. If this is a common setup, maybe we're going to need a new section under or near https://www.postgresql.org/docs/current/static/kernel-resources.html#SYSVIPC It's pretty annoying to have sweated blood to get out from under the kernel's chosen-at-random SysV IPC limits, only to run into container tmpfs limits that seem equally chosen with the aid of a dartboard. regards, tom lane