Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sonlx-00DvNW-JC for pgsql-general@arkaria.postgresql.org; Thu, 12 Sep 2024 17:38:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sonlw-00DZp1-3B for pgsql-general@arkaria.postgresql.org; Thu, 12 Sep 2024 17:38:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sonlv-00DZn7-OH for pgsql-general@lists.postgresql.org; Thu, 12 Sep 2024 17:38:23 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sonlo-000ptR-HC for pgsql-general@postgresql.org; Thu, 12 Sep 2024 17:38:22 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 48CHcBI54039018; Thu, 12 Sep 2024 13:38:11 -0400 From: Tom Lane To: =?iso-8859-1?Q?Fran=E7ois?= SIMON cc: Adrian Klaver , pgsql-general@postgresql.org Subject: Re: post-bootstrap init : permission denied pg_description In-reply-to: References: <241898171.198702953.1726138710864.JavaMail.root@zimbra28-e5.priv.proxad.net> <5616584c-97c1-4b65-a6d5-a957782c44c1@aklaver.com> Comments: In-reply-to =?iso-8859-1?Q?Fran=E7ois?= SIMON message dated "Thu, 12 Sep 2024 19:06:39 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4039016.1726162691.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 12 Sep 2024 13:38:11 -0400 Message-ID: <4039017.1726162691@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =3D?iso-8859-1?Q?Fran=3DE7ois?=3D SIMON writes: > So the problem seems to come from xlc, and only at initdb step. > I can see that initdb runs a backend postgres in single user mode. > And this is this backend, when compiled with xlc, that shows : > FATAL: permission denied for table pg_description Yeah. This seems like it must be an xlc code-generation bug. It's got nothing to do with filesystem permissions: you're failing an ACL check at the logical "table" level, which you should not be because single-user mode implies superuser permissions. We do have one buildfarm member building with 64-bit xlc on AIX 7.1: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dhornet&dt=3D2024= -09-11%2003%3A51%3A02 I see that that uses a bunch of odd CFLAGS, but they look like they are mostly to suppress compiler warnings. Another important bit of the recipe for AIX is -D_LARGE_FILES=3D1, but I'm not sure that that would have any impact during initdb (since we're not dealing with any large files at that point). You could perhaps try different -O optimization levels. Also make sure your xlc is up-to-date. regards, tom lane