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 1ltKcw-0007Fd-9I for pgsql-admin@arkaria.postgresql.org; Wed, 16 Jun 2021 01:45:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ltKcv-0005Km-8n for pgsql-admin@arkaria.postgresql.org; Wed, 16 Jun 2021 01:45:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltKcu-0005Ke-Va for pgsql-admin@lists.postgresql.org; Wed, 16 Jun 2021 01:45:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltKcs-0000kY-NC for pgsql-admin@postgresql.org; Wed, 16 Jun 2021 01:45:56 +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 15G1jqAl593080; Tue, 15 Jun 2021 21:45:52 -0400 From: Tom Lane To: Wells Oliver cc: "David G. Johnston" , pgsql-admin Subject: Re: Dump & restore in directory format and permissions are largely lost? In-reply-to: References: <591499.1623806357@sss.pgh.pa.us> <592237.1623807036@sss.pgh.pa.us> Comments: In-reply-to Wells Oliver message dated "Tue, 15 Jun 2021 18:32:55 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <593078.1623807952.1@sss.pgh.pa.us> Date: Tue, 15 Jun 2021 21:45:52 -0400 Message-ID: <593079.1623807952@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Wells Oliver writes: > Ah, I'm sorry, is there a way to see grants contained in a dump? I'd try "pg_restore -s -f - archive.file | grep GRANT" or so. regards, tom lane