From: Euler Taveira <euler@timbira.com.br>
To: lalbin@fhcrc.org
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8545: pg_dump fails to backup database level grants
Date: Tue, 22 Oct 2013 01:26:21 -0200
Message-ID: <5265F05D.9000406@timbira.com.br> (raw)
In-Reply-To: <E1VYMqi-0001P4-P4@wrigleys.postgresql.org>
References: <E1VYMqi-0001P4-P4@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: euler@timbira.com.br, lalbin@fhcrc.org
Subject: Re: BUG #8545: pg_dump fails to backup database level grants
In-Reply-To: <5265F05D.9000406@timbira.com.br>
References: <E1VYMqi-0001P4-P4@wrigleys.postgresql.org> <5265F05D.9000406@timbira.com.br>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox