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 1qPVWf-00BEzh-1C for pgsql-bugs@arkaria.postgresql.org; Fri, 28 Jul 2023 22:01:33 +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 1qPVWa-0028TN-Km for pgsql-bugs@arkaria.postgresql.org; Fri, 28 Jul 2023 22:01:28 +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 1qPVWZ-0028TF-J3 for pgsql-bugs@lists.postgresql.org; Fri, 28 Jul 2023 22:01:28 +0000 Received: from mail-mw2nam10olkn2082b.outbound.protection.outlook.com ([2a01:111:f400:7e89::82b] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qPVWU-00278j-2K for pgsql-bugs@lists.postgresql.org; Fri, 28 Jul 2023 22:01:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CqWpYDHp7PkbYZXXpBShi3/XfNyzTRaAGROXXUiIEauwAnAiJVblU5PfoG+Vzw1Z++2wecpLypTBeAkfr+tkFSRXnIc7m4sxqJHkmVeTEm25S1k7uTZ412Ae/Id01u24p75WC28ZEo7i5VnwYvCDrLeSwg+ewITmiQElqkF7I8L/QdKyrruYBQtskMKdaowf++ZnL8nGSrL1jIepZbEGWzPIC2V7LWAt5UQTatMEPSeLSLol8Bg5v7vivmTqKF/6433iRlTK2dINYT3g+Kliz5S2ybtzBMUTW8Jz1vLlupYDy/CwdjCMu575IDt+2pac9NzB5nV4qXvY7tLkMt0A1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Nffz5AZ+obQuvAAja+jVeVniGUwQuzpYoG2gJh2Fl1A=; b=nC5MTqMS3mEKidus1JG7uIaDaRPMPJWbDo0fag4+EpF/SnhVwbCHiqFBM1v43l8S7vSHqm68OOfu4a9oNK6U+Q/PTwYuRPjoNGoL3oW+xtiuEpq+rHV4bIHBCjWQIySkTG7reUR0uAomQRoDoGHayefHq2RMMDLGQTMqQwE9z9Y0bGrwbq9ze6bHY3KuazkSo4m2XHIFAzGMxtMWJFSuLJbcl8D4ANMusRl8UZ/zU1AU7QoGDjYWje1b+w/KBsRMLUFja1Np8q+l6KNd8xMZwx4Nk7Uu2zZWMqr50UI0u4NIMSYkfNOI7A7sdLJI0qgQL4275Vw0S7Fd91Q51rPfmA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Nffz5AZ+obQuvAAja+jVeVniGUwQuzpYoG2gJh2Fl1A=; b=WuvSijtYKfAc4r6EAcJSRFPg3UW5BCP6N4cBRz2eR9G7qUyS8/Ck/fzBLUqBwhG7cf1Svngds09OIGr6koDGFixyTArmeiEdLeX/9zhg4ug4yIkxo8OwoJwQ0npHPJA6EHthJMjwyrCupt9N4YT1n67xxMP/i0+V/oPd56zLB7/AzOlYYrSC/KcAAqFqkCTMzjB1rn/Z78QXAiMey5/5iW76VXGddY2p8PFfLDBjaGihjaiAyKoq0ivehFk83/Ox2jfPRNZtm1xfLBQYqpGyEjaCjHEtpumtuI9s+pP7aN2H0YkNGr28Do5IKMfmao+6+V7GtNeexamrU5y42gd/Pg== Received: from DM4PR11MB7397.namprd11.prod.outlook.com (2603:10b6:8:103::17) by CO1PR11MB5201.namprd11.prod.outlook.com (2603:10b6:303:95::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.29; Fri, 28 Jul 2023 22:01:19 +0000 Received: from DM4PR11MB7397.namprd11.prod.outlook.com ([fe80::2414:98ab:4a27:555b]) by DM4PR11MB7397.namprd11.prod.outlook.com ([fe80::2414:98ab:4a27:555b%2]) with mapi id 15.20.6609.032; Fri, 28 Jul 2023 22:01:19 +0000 From: Kong Man To: "pgsql-bugs@lists.postgresql.org" Subject: pg_restore 14 skips ACL COLUMN when --schema is used Thread-Topic: pg_restore 14 skips ACL COLUMN when --schema is used Thread-Index: AQHZwZvQmOcwU7VyQ0iIta+0RwwCnw== Date: Fri, 28 Jul 2023 22:01:19 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-tmn: [vqyYFAFg5O6VqRXmOCt9eoAiGQ5/ABjt] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM4PR11MB7397:EE_|CO1PR11MB5201:EE_ x-ms-office365-filtering-correlation-id: 1b1c2b17-4282-4ec7-cb96-08db8fb62c31 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: z0buXEEUnVg4BlZ3RlgEUNAwA+IRkSMh0IhdytedobXUHUv2v6VPWQkeYXeUdX31olUtbh2630C/1u3FTW+mRlg/HsJ9jdZ3XMa/i/L0N0Xfr1oBnsd2n7JpQGedPpyWo04h2WYkZan/bo2rGmilahs/iqhVSd+DSTqb6CDcClTAsdM27s26RxgpCICd5sIgAUs3n4OKbt9xBRNNv3stWpUqD+vzoZoC3+SrTGlxXgzNlrz1+86FilMkH0NjBzM5mdmALMipr0V0L1US4Z96JB3F9pYVCS+ebd/LmeaNborkCWgmlVa9kOe657WNiP99iLxS51fTeLnF62L4lYIpCC4VNybltKO57I86RAjcZ7CMM5iBbdj6cnlwgqjMlyL+lbVjDotY35wZE+AIPuI70YzS+YXXqnXTULo9BPIz9ToD88FPwLgKsf7FElXxRQYF98TjcSBUdO7totn9uYSqfVUzYWrCgRGff4oe1Ef1tSb8adh4G+BwtbQC1yPqqTt4WimuzYKMlZ4l2dd7YLgG5+81cBjfMBXIKc7IwSsa7nLTWh7giKGb6nwoX8EB0gMX x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?9StuCILq2EGLUguFC/jNWg+dy1p7OsReBK1Pg4WLxFivSQoBRibn6AXj57?= =?iso-8859-1?Q?+jK1u1c/PFcHm4dJv/g3eS8tJneVI6PW5P97Eg1eTqkqUNXQseZX69/qzt?= =?iso-8859-1?Q?BraMn/h/ApvMMsY5+e5a1IcaQmQ5EQ5L4T24XRNeGCNvXUgmtTYUlHNhmu?= =?iso-8859-1?Q?cn0oGO/1RYyv3JE45kIgW4AAztoSSfqjWbPDXHFjEu8wi++CfmMF7kycrr?= =?iso-8859-1?Q?XOj6z2dv6/Zde9zUsGzLG2LXpKG84r4uxezjlORVUmzZFLv07mKEfp3i6m?= =?iso-8859-1?Q?YkWJrxb+4Ce/+nFet6ZHcu0OSu/YXBaq0bElyp5fwIxugOlDl6QrQJGgC2?= =?iso-8859-1?Q?JPKjA15YSngByWSnHIWac9exCQ7jGwyh+yGFZ7sGxTBGHfnZJ6tEmvdLPu?= =?iso-8859-1?Q?jFmKe1V7ZYcjF+XaZWf1znebiNT6Ll8LGmEn7Uk8bvBAZCCWYRCY5YNjtI?= =?iso-8859-1?Q?mcTWEtfXmTUg2UgeIRFF20OmyuuWAC6BO/064UTYvaHONOapLthxSUJ8QV?= =?iso-8859-1?Q?dpM8yZlTyBQd5AHe5MYJlCDZOYBfdVpg6xtwQ+5/pSaqISu0w2ISkAiEiH?= =?iso-8859-1?Q?hBUzMWdC2Jz/sK3qLbs7+FK729AShcbdLe3EJIYsfeh2YaqIM7h2NogsLe?= =?iso-8859-1?Q?/3oduMpmel8mP5i7kbVLuF25c4mgDV2dIhIYKqlN3cbZc/CLq15Ef+WPDH?= =?iso-8859-1?Q?sUjAdzlgY5ena612trzZK3mbWgxvDTS6xVZqotWN2X44o3H4nL7OyXnZZh?= =?iso-8859-1?Q?Sn22UnLQB/rWRXRWnxmne/MmUUBn3CDn9QwzS1hyx75pWPCE2BUgrOAbkT?= =?iso-8859-1?Q?T4kyXWTOG34PKZeeasu4PWFBj4AAc0ZC9nSsW7DSsX5tDwF4UMfKQiisA1?= =?iso-8859-1?Q?PWGciDt+Z4DX4X4lF7tByxw/co2qJXfr6rtE5RgSnUd4J3pwesAmRLlALc?= =?iso-8859-1?Q?m+UYAB0Ma2nG0xgogJvOvx7lI3RQ1NHEoba8MsQ6QNGOFL5EQBcIXtilrv?= =?iso-8859-1?Q?B632kPbqkKgE/8U9x/Vr93jNGmyqZa9K+EeMHXamReqwiuorKXHsgEseCU?= =?iso-8859-1?Q?hagKg+E/jqoAxaozTXtWkPms0/Pi+d1UpADCKidShgDr/F7Jp9hdxn6uyX?= =?iso-8859-1?Q?eTYl+WzKKl1Tz/5ven6vw1KFSaDfQWnbbUeJ6L9YRBl7CXgrF0y+MOgLtf?= =?iso-8859-1?Q?xYMuUtOlFufp5hatnueOmqLmgOAagPHN1zyI/edeAhCEuEQnVcHye3U6kI?= =?iso-8859-1?Q?MgCEOA33D/ovZUPn4C1hXOq09ih5mkPTyoYk8qf2M=3D?= Content-Type: multipart/alternative; boundary="_000_DM4PR11MB73976902DBBA10B1D652F9498B06ADM4PR11MB7397namp_" MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-e8f36.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB7397.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 1b1c2b17-4282-4ec7-cb96-08db8fb62c31 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jul 2023 22:01:19.1195 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB5201 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_DM4PR11MB73976902DBBA10B1D652F9498B06ADM4PR11MB7397namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable pg_restore --schema in our script used to work well against pg_restore 10. = Now that we are on PostgreSQL 14. pg_restore 14 skips ACL COLUMN, but not= ACL TABLE, when --schema is used. If there has been a known bug, please help direct me there for any possible= workaround. Thanks, -Kong pg_restore --list $dumpfile >$tocfile pg_restore --use-list=3D<(grep "ACL public COLUMN event.id" $tocfile) -f - = $dumpfile -- -- PostgreSQL database dump -- -- Dumped from database version 14.5 (Ubuntu 14.5-1.pgdg20.04+1) -- Dumped by pg_dump version 14.5 (Ubuntu 14.5-1.pgdg20.04+1) SET statement_timeout =3D 0; SET lock_timeout =3D 0; SET idle_in_transaction_session_timeout =3D 0; SET client_encoding =3D 'UTF8'; SET standard_conforming_strings =3D on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies =3D false; SET xmloption =3D content; SET client_min_messages =3D warning; SET row_security =3D off; -- -- Name: COLUMN event.id; Type: ACL; Schema: public; Owner: admin -- GRANT SELECT(id) ON TABLE public.event TO warranty_creation_verification; GRANT SELECT(id) ON TABLE public.event TO data_reader; GRANT SELECT(id) ON TABLE public.event TO internal_reader; -- -- PostgreSQL database dump complete -- pg_restore --schema=3Dpublic --use-list=3D<(grep "ACL public COLUMN event.i= d" $tocfile) -f - $dumpfile -- -- PostgreSQL database dump -- -- Dumped from database version 14.5 (Ubuntu 14.5-1.pgdg20.04+1) -- Dumped by pg_dump version 14.5 (Ubuntu 14.5-1.pgdg20.04+1) SET statement_timeout =3D 0; SET lock_timeout =3D 0; SET idle_in_transaction_session_timeout =3D 0; SET client_encoding =3D 'UTF8'; SET standard_conforming_strings =3D on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies =3D false; SET xmloption =3D content; SET client_min_messages =3D warning; SET row_security =3D off; -- -- PostgreSQL database dump complete -- --_000_DM4PR11MB73976902DBBA10B1D652F9498B06ADM4PR11MB7397namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
pg_restore --schema in our script used to work well against pg_restore 10.&= nbsp; Now that we are on PostgreSQL 14.  pg_restore 14 skips ACL COLUM= N, but not ACL TABLE, when --schema is used.

If there has been a known bug, please help direct me there for any possible= workaround.

Thanks,
-Kong

pg_restore --list $dumpfile >$tocfile
pg_restore --use-list=3D<(grep "ACL public COLUMN event.id&quo= t; $tocfile) -f - $dumpfile
--
-- PostgreSQL database dump
--

-- Dumped from database version 14.5 (Ubuntu 14.5-1.pgdg20.04+1)
-- Dumped by pg_dump version 14.5 (Ubuntu 14.5-1.pgdg20.04+1)

SET statement_timeout =3D 0;
SET lock_timeout =3D 0;
SET idle_in_transaction_session_timeout =3D 0;
SET client_encoding =3D 'UTF8';
SET standard_conforming_strings =3D on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies =3D false;
SET xmloption =3D content;
SET client_min_messages =3D warning;
SET row_security =3D off;

--
-- Name: COLUMN event.id; Type: ACL; Schema: public; Owner: admin
--

GRANT SELECT(id) ON TABLE public.event TO warranty_creation_verificati= on;
GRANT SELECT(id) ON TABLE public.event TO data_reader;
GRANT SELECT(id) ON TABLE public.event TO internal_reader;


--
-- PostgreSQL database dump complete
--

pg_restore --schema=3Dpublic --use-list=3D<(grep "ACL public C= OLUMN event.id" $tocfile) -f - $dumpfile
--
-- PostgreSQL database dump
--

-- Dumped from database version 14.5 (Ubuntu 14.5-1.pgdg20.04+1)
-- Dumped by pg_dump version 14.5 (Ubuntu 14.5-1.pgdg20.04+1)

SET statement_timeout =3D 0;
SET lock_timeout =3D 0;
SET idle_in_transaction_session_timeout =3D 0;
SET client_encoding =3D 'UTF8';
SET standard_conforming_strings =3D on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies =3D false;
SET xmloption =3D content;
SET client_min_messages =3D warning;
SET row_security =3D off;

--
-- PostgreSQL database dump complete
--

--_000_DM4PR11MB73976902DBBA10B1D652F9498B06ADM4PR11MB7397namp_--