From: Stephen Frost <sfrost@snowman.net>
To: Hale, Tyler <Tyler.Hale@capitalone.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #12939: GRANT ALL ON ALL SEQUENCES doesn't work for sequences not yet existing
Date: Thu, 2 Apr 2015 13:56:39 -0400
Message-ID: <20150402175639.GY3663@tamriel.snowman.net> (raw)
In-Reply-To: <7123D00A1041B64F962A9AA1E8F045C503DCBB1221@KDCPEXCMB03.cof.ds.capitalone.com>
References: <20150401193930.2550.67536@wrigleys.postgresql.org>
<20150401210755.GS3663@tamriel.snowman.net>
<7123D00A1041B64F962A9AA1E8F045C503DCBB1221@KDCPEXCMB03.cof.ds.capitalone.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Tyler,
It's true for all object types. GRANT ON ALL addresses objects which
currently exist while ALTER DEFAULT PRIVILEGES addresses objects which
are created in the future.
Thanks!
Stephen
* Hale, Tyler (Tyler.Hale@capitalone.com) wrote:
> Thanks for the insight Stephen. Do you know if this type of functionality is only limited to sequences or all types of database objects? I am relatively new to Postgres and am trying to come up with rules/best practices for my team to use when deploying new structures on Postgres.
>
> Thanks,
> Tyler
>
> -----Original Message-----
> From: Stephen Frost [mailto:sfrost@snowman.net]
> Sent: Wednesday, April 01, 2015 5:08 PM
> To: Hale, Tyler
> Cc: pgsql-bugs@postgresql.org
> Subject: Re: [BUGS] BUG #12939: GRANT ALL ON ALL SEQUENCES doesn't work for sequences not yet existing
>
> 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
> ________________________________________________________
>
> The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.
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: <20150402175639.GY3663@tamriel.snowman.net>
References: <20150401193930.2550.67536@wrigleys.postgresql.org> <20150401210755.GS3663@tamriel.snowman.net> <7123D00A1041B64F962A9AA1E8F045C503DCBB1221@KDCPEXCMB03.cof.ds.capitalone.com> <20150402175639.GY3663@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