From: Tom Lane <tgl@sss.pgh.pa.us>
To: Saltsgaver, Scott <scottsa@aiinet.com>
Cc: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: Re: Granting of permissions on tables
Date: Thu, 05 Oct 2000 17:37:49 -0400
Message-ID: <17228.970781869@sss.pgh.pa.us> (raw)
In-Reply-To: <7283DE19D141D111AD0E00A0C95B195503A59E73@mail2.aiinet.com>
References: <7283DE19D141D111AD0E00A0C95B195503A59E73@mail2.aiinet.com>
"Saltsgaver, Scott" <scottsa@aiinet.com> writes:
> Is this a bug or desired behavior? I would imagine since I owned the tables
> and then granted permissions to another user, I wouldn't lose my
> permissions.
It's a bug, or at least a misfeature. As long as you haven't done any
explicit grants or revokes, 7.0 uses an implicit access control list
that grants all privileges to the owner and none to anyone else.
However, the moment you do any explicit grant/revoke, that implicit
ACL entry for the owner isn't used anymore. You have to explicitly
grant rights to yourself again :-(.
You don't need superuser help to do this, you just have to do
GRANT ALL ON table TO yourself
as the table owner. But it's stupid to have to do that when it's
supposed to be the default condition. Fixed for 7.1.
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-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, scottsa@aiinet.com
Subject: Re: Granting of permissions on tables
In-Reply-To: <17228.970781869@sss.pgh.pa.us>
References: <7283DE19D141D111AD0E00A0C95B195503A59E73@mail2.aiinet.com> <17228.970781869@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