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 1sp75m-00GgUf-5i for pgsql-general@arkaria.postgresql.org; Fri, 13 Sep 2024 14:16:11 +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 1sp75l-003hrk-Pz for pgsql-general@arkaria.postgresql.org; Fri, 13 Sep 2024 14:16:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sp75l-003hqs-CO for pgsql-general@lists.postgresql.org; Fri, 13 Sep 2024 14:16:09 +0000 Received: from smtp1-g21.free.fr ([212.27.42.1]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sp75f-001098-Ht for pgsql-general@postgresql.org; Fri, 13 Sep 2024 14:16:08 +0000 Received: from corindon.frsi.fr (unknown [IPv6:2a01:cb05:8478:3800:6376:2882:6e1:492b]) (Authenticated sender: francois.simon@free.fr) by smtp1-g21.free.fr (Postfix) with ESMTPSA id D4D42B005B1; Fri, 13 Sep 2024 16:16:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1726236963; bh=eKDOG9hIvBBPEHailgO+V44aDJP9ANTTjnhTjutMn5o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nFdQ4dmOFt11u9Qjmqzu9Dphz5a074DoqJthrZB57w+cH5JbcoHHZismSdTf0HjpP o8dyVSHPfhOt/sThPUNzA2lcLwY7g5BssCsudeiD6f7v36VsqaMIXzj1Z0zMzetP3u u5WPl/TJjwvXedXP1nfCzOXW9nGF+ChaBpRoSMpJ6rcGsjKLAXkeZL3n5D7eF8O+ht iqLNCaN8/wpIcOh0ylYiDFV8zt1vJbtX2a+/nekUlGnYxl/xVRDmUN/OJR9rbh03F6 Yfs80vHRBcibwEt/jHJcK2qNiJpiiYfrHeuKpKuNfvRgKES5yas1WK9BMu6Kgnzqn9 ium4IiUlygRDw== Date: Fri, 13 Sep 2024 16:15:59 +0200 From: =?iso-8859-1?Q?Fran=E7ois?= SIMON To: Tom Lane Cc: Adrian Klaver , pgsql-general@postgresql.org Subject: Re: post-bootstrap init : permission denied pg_description Message-ID: References: <241898171.198702953.1726138710864.JavaMail.root@zimbra28-e5.priv.proxad.net> <5616584c-97c1-4b65-a6d5-a957782c44c1@aklaver.com> <4039017.1726162691@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4039017.1726162691@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Le Thu, Sep 12, 2024 at 01:38:11PM -0400, Tom Lane a écrit : > =?iso-8859-1?Q?Fran=E7ois?= 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=hornet&dt=2024-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=1, 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. Thank you for all this information. Unfortunately I haven't obtained any better results yet. I tried -O2, -O3, with or without -D_LARGE_FILES=1, xlc_r instead of xlc, and all the same flags as the buildfarm member. I will try with another version of xlc if possible. François > > regards, tom lane