Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oGzn0-0002y1-FF for pgsql-admin@arkaria.postgresql.org; Thu, 28 Jul 2022 09:26:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oGzmz-0005Ik-CE for pgsql-admin@arkaria.postgresql.org; Thu, 28 Jul 2022 09:26:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oGzmy-0005Ib-C4 for pgsql-admin@lists.postgresql.org; Thu, 28 Jul 2022 09:26:41 +0000 Received: from ook.raf.org ([139.99.156.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oGzmv-00023o-Ge for pgsql-admin@lists.postgresql.org; Thu, 28 Jul 2022 09:26:39 +0000 Received: from localhost (localhost [127.0.0.1]) by ook.raf.org (Postfix) with ESMTP id 8D4DA5DF26 for ; Thu, 28 Jul 2022 19:26:25 +1000 (AEST) X-Virus-Scanned: Debian amavisd-new at ook.raf.org Received: from ook.raf.org ([127.0.0.1]) by localhost (ook.raf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UeELNpLYZEis for ; Thu, 28 Jul 2022 19:26:24 +1000 (AEST) Received: by ook.raf.org (Postfix, from userid 1001) id ECA455DF83; Thu, 28 Jul 2022 19:26:24 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raf.org; s=001; t=1659000384; bh=iWUTZlw2IO0StC0tJ5eoLz0U/W2M/fjUUIRhbsSZ0kg=; h=Date:From:To:Subject:References:In-Reply-To:From; b=oa4dp3XxbHNeb4H5TPQbn3wMzesSuxG+7lwiInq+1We+taPpnFqpTN2didSSfIt5B fRhG9XX2DO2ZTyVKhfl/e54HtCm/ldpWm30yz132xG8i0dZpzsbeFiPYdF4z63N1BD L2WXjDV7fQykQ+kBxpopxb57irXVGAVQgO5Lh/rs3ghYkMmwSw8wu3BAnpMkj4CiV3 LpO25bxX7PCS1CZF/qpqQaIs0gGKahCK6+BzuiOEuFXE/j90El/f0P6+xxPlRKVg26 F3bcMEhsuVNpx3BnwPFg8wg7mMFNpfQ17i3IY2NI0hBlj1JWMtobLOoJZu5FHoADmI kMnnBDtWcqpYw== Date: Thu, 28 Jul 2022 19:26:24 +1000 From: raf To: pgsql-admin@lists.postgresql.org Subject: Re: error I don't understand Message-ID: References: <54A636CB-DD71-4B4E-A6E6-1CE146454C0E@elevated-dev.com> <3222447.1658978804@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3222447.1658978804@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Jul 27, 2022 at 11:26:44PM -0400, Tom Lane wrote: > Scott Ribe writes: > > On Jul 27, 2022, at 11:30 AM, Ian Lawrence Barwick wrote: > >> If you are using a Systemd-enabled Linux, check that "RemoveIPC" is > >> set to "no". > > > That was the answer. I checked other servers, they had it set. But they are much older OSs (overdue for updates, RSN), different installers. > > I looked at this on my own machines and was interested to find that > RHEL8 defaults it to "no", although the upstream default is evidently > "yes" and Fedora follows that. Not sure what to make of that, > except that OS-vendor opinion isn't universal that this is a great > idea. > > regards, tom lane It is not a great idea. On Debian, I had a postgres user cronjob, and occasionally, systemd in its infinite wisdom would decide that the end of the cronjob meant that the postgres user had logged out and needed to have its IPC resources deleted, even though the IPC resources in question were created by a different long-running postgres user "session" that was still running (i.e., the database server). The consequence was error messages from the database claiming that the database was corrupt. Very scary. It wasn't corrupt. It just needed systemd to stop deleting its stuff. cheers, raf