From: Tom Lane <tgl@sss.pgh.pa.us>
To: L Bayuk <lbayuk@pobox.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: 8.2.0 upgrade issue: loss of CONNECT rights
Date: Wed, 27 Dec 2006 20:26:42 -0500
Message-ID: <28233.1167269202@sss.pgh.pa.us> (raw)
In-Reply-To: <20061228004546.GB364@mail.mindspring.com>
References: <20061228004546.GB364@mail.mindspring.com>
L Bayuk <lbayuk@pobox.com> writes:
> Another thing to watch out for when upgrading to 8.2.0:
> I had some 8.1.x databases with restricted rights, like REVOKE CREATE ON
> DATABASE. After pg_dumpall and reload into 8.2.0, I lost CONNECT rights on
> those databases. So only the superuser account can connect. The reason
> seems to be that my dump file had REVOKE ALL ON DATABASE, then added the
> specific GRANT rights. At 8.2.0, REVOKE ALL includes revoking CONNECT
> rights even though they were always granted at 8.1.5.
Hmmm ... I think we could hack 8.2's pg_dumpall to compensate for that,
ie throw in a GRANT CONNECT ... TO PUBLIC when dumping from a pre-8.2
server. But of course this wouldn't do anything for databases dumped
with older versions of pg_dumpall.
regards, tom lane
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, lbayuk@pobox.com
Subject: Re: 8.2.0 upgrade issue: loss of CONNECT rights
In-Reply-To: <28233.1167269202@sss.pgh.pa.us>
References: <20061228004546.GB364@mail.mindspring.com> <28233.1167269202@sss.pgh.pa.us>
* 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