From: Stephen Frost <sfrost@snowman.net>
To: tyler.hale@capitalone.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12939: GRANT ALL ON ALL SEQUENCES doesn't work for sequences not yet existing
Date: Wed, 1 Apr 2015 17:07:55 -0400
Message-ID: <20150401210755.GS3663@tamriel.snowman.net> (raw)
In-Reply-To: <20150401193930.2550.67536@wrigleys.postgresql.org>
References: <20150401193930.2550.67536@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Tyler,
* tyler.hale@capitalone.com (tyler.hale@capitalone.com) wrote:
> Running a GRANT ALL ON ALL SEQUENCES IN PUBLIC SCHEMA doesn't work when the
> sequence is created after running the GRANT statement regardless of whether
> the sequence was created implicitly or explicitly.
GRANT ALL only operates against objects which already exist.
If you wish to set default privileges, use ALTER DEFAULT PRIVILEGES.
Those will then apply for newly created objects.
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
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: sfrost@snowman.net, tyler.hale@capitalone.com
Subject: Re: BUG #12939: GRANT ALL ON ALL SEQUENCES doesn't work for sequences not yet existing
In-Reply-To: <20150401210755.GS3663@tamriel.snowman.net>
References: <20150401193930.2550.67536@wrigleys.postgresql.org> <20150401210755.GS3663@tamriel.snowman.net>
* 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