Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VYScH-0001dF-CI for pgsql-bugs@arkaria.postgresql.org; Tue, 22 Oct 2013 03:26:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VYScG-0005PM-Rt for pgsql-bugs@arkaria.postgresql.org; Tue, 22 Oct 2013 03:26:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VYScF-0005PF-Tp for pgsql-bugs@postgresql.org; Tue, 22 Oct 2013 03:26:43 +0000 Received: from [2600:3c02::f03c:91ff:fe70:c491] (helo=apinaye.timbira.com.br) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VYScB-0005vG-GA for pgsql-bugs@postgresql.org; Tue, 22 Oct 2013 03:26:43 +0000 Received: by apinaye.timbira.com.br (Postfix, from userid 110) id 5271B10F66; Mon, 21 Oct 2013 23:26:37 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on apinaye X-Spam-Level: X-Spam-Status: No, score=-101.0 required=5.0 tests=ALL_TRUSTED, URIBL_BLOCKED, USER_IN_WHITELIST autolearn=unavailable version=3.3.1 Received: from [172.16.0.100] (201-88-209-190.pmjce700.dsl.brasiltelecom.net.br [201.88.209.190]) by apinaye.timbira.com.br (Postfix) with ESMTPSA id 9A218173E01; Mon, 21 Oct 2013 23:26:29 -0400 (EDT) Message-ID: <5265F05D.9000406@timbira.com.br> Date: Tue, 22 Oct 2013 01:26:21 -0200 From: Euler Taveira Organization: Timbira User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: lalbin@fhcrc.org CC: pgsql-bugs@postgresql.org Subject: Re: BUG #8545: pg_dump fails to backup database level grants References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2600:3c02::f03c:91ff:fe70:c491 (failed) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 21-10-2013 19:17, lalbin@fhcrc.org wrote: > Most people I know, including myself, use pg_dumpall -g to dump out the > globals such as user accounts and then use pg_dump -Fc or -Fd to dump out > their databases in the compressed formats. When doing this method the > database level grants have been missed, although if people used the > pg_dumpall to dump the entire server they will be dumped, but not in a > compressed format that they can use with pg_restores multi-job. > Lloyd, this is not a bug. pg_dump doesn't dump global objects such as databases, roles and tablespaces. Hence grants are not presented in your dump. If you want global objects use pg_dumpall. -- Euler Taveira Timbira - http://www.timbira.com.br/ PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs