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 1qnMlv-00Akk6-Kl for pgsql-bugs@arkaria.postgresql.org; Mon, 02 Oct 2023 17:31:55 +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 1qnMjv-00GVFS-A6 for pgsql-bugs@arkaria.postgresql.org; Mon, 02 Oct 2023 17:29:51 +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 1qnMjv-00GVFH-15 for pgsql-bugs@lists.postgresql.org; Mon, 02 Oct 2023 17:29:51 +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 1qnMjs-007pDC-ON for pgsql-bugs@lists.postgresql.org; Mon, 02 Oct 2023 17:29:49 +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 392HThaX2132594; Mon, 2 Oct 2023 13:29:43 -0400 From: Tom Lane To: "Euler Taveira" cc: "Kong Man" , "pgsql-bugs@lists.postgresql.org" Subject: Re: pg_restore 14 skips ACL COLUMN when --schema is used In-reply-to: <87065.1691588360@sss.pgh.pa.us> References: <2427882.1690590240@sss.pgh.pa.us> <90659bbc-e0cb-407d-b42b-5931346735ad@app.fastmail.com> <3317367.1691006807@sss.pgh.pa.us> <82fd2945-f56f-4e78-b0b5-222848ba8241@app.fastmail.com> <87065.1691588360@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 09 Aug 2023 09:39:20 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2132592.1696267783.1@sss.pgh.pa.us> Date: Mon, 02 Oct 2023 13:29:43 -0400 Message-ID: <2132593.1696267783@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > Hmm, changing it like that seems likely to have a lot of unexpected > side-effects. What I had in mind was to change the > if (te->nDeps != 1 || > TocIDRequired(AH, te->dependencies[0]) == 0) > return 0; > bit so that it would loop through the TE's dependencies to see > if any one of them is a required non-ACL TE. We have to relax > the "te->nDeps != 1" restriction, but we still want to check > that there is a parent object that is being restored. I improved the patch along those lines and pushed it. regards, tom lane