Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YdjME-0006mW-PP for pgsql-bugs@arkaria.postgresql.org; Thu, 02 Apr 2015 17:56:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YdjME-0002ym-8W for pgsql-bugs@arkaria.postgresql.org; Thu, 02 Apr 2015 17:56:46 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YdjMC-0002yd-0T for pgsql-bugs@postgresql.org; Thu, 02 Apr 2015 17:56:44 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YdjM7-0005pp-Tx for pgsql-bugs@postgresql.org; Thu, 02 Apr 2015 17:56:42 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 4EFE85F7BB; Thu, 2 Apr 2015 13:56:39 -0400 (EDT) Date: Thu, 2 Apr 2015 13:56:39 -0400 From: Stephen Frost To: "Hale, Tyler" Cc: "pgsql-bugs@postgresql.org" Subject: Re: BUG #12939: GRANT ALL ON ALL SEQUENCES doesn't work for sequences not yet existing Message-ID: <20150402175639.GY3663@tamriel.snowman.net> References: <20150401193930.2550.67536@wrigleys.postgresql.org> <20150401210755.GS3663@tamriel.snowman.net> <7123D00A1041B64F962A9AA1E8F045C503DCBB1221@KDCPEXCMB03.cof.ds.capitalone.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eqq5Le9VNi5o1NaU" Content-Disposition: inline In-Reply-To: <7123D00A1041B64F962A9AA1E8F045C503DCBB1221@KDCPEXCMB03.cof.ds.capitalone.com> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-46-generic (x86_64) X-Uptime: 13:55:56 up 13 days, 23:44, 4 users, load average: 0.05, 0.06, 0.05 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --eqq5Le9VNi5o1NaU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 functionalit= y is only limited to sequences or all types of database objects? I am rela= tively new to Postgres and am trying to come up with rules/best practices f= or my team to use when deploying new structures on Postgres. >=20 > Thanks, > Tyler >=20 > -----Original Message----- > From: Stephen Frost [mailto:sfrost@snowman.net]=20 > 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 f= or sequences not yet existing >=20 > Tyler, >=20 > * tyler.hale@capitalone.com (tyler.hale@capitalone.com) wrote: > > Running a GRANT ALL ON ALL SEQUENCES IN PUBLIC SCHEMA doesn't work=20 > > when the sequence is created after running the GRANT statement=20 > > regardless of whether the sequence was created implicitly or explicitly. >=20 > GRANT ALL only operates against objects which already exist. >=20 > If you wish to set default privileges, use ALTER DEFAULT PRIVILEGES. > Those will then apply for newly created objects. >=20 > Thanks! >=20 > Stephen > ________________________________________________________ >=20 > The information contained in this e-mail is confidential and/or proprieta= ry to Capital One and/or its affiliates. The information transmitted herewi= th is intended only for use by the individual or entity to which it is addr= essed. If the reader of this message is not the intended recipient, you ar= e hereby notified that any review, retransmission, dissemination, distribut= ion, copying or other use of, or taking of any action in reliance upon this= information is strictly prohibited. If you have received this communicatio= n in error, please contact the sender and delete the material from your com= puter. --eqq5Le9VNi5o1NaU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJVHYLWAAoJEO1sijiDR2RVPPgP/AzsuqjJEL4/nBLwaWwwC86k gUPQXXRVpyp7TtaxKq3bPAew1QwVnLbYXEv7DyeSTsH5LOWDes/UbAceludnl7c0 FXl1t4J7Zh3Vi88PGkOX09CX9BHvmy9PrTTlqohMIv6y1tJL02MGRoEjw14GAXU2 qvzf2vLJSd0m3SWkqE3raf9785RanvhXyL90Gbg4gWWLg7+i9vvddNzqjc9aI+Ly pwHTfJmydQBSWq4bLbBG5cX3LLUgWdY2jINKLqJVo/l2YTpZafomwd/3GU1VJlB7 Iph5XCAqhdeedjUCPnQVLf4DxQT+BYSdkY0biVpw03ZDMuR4WXbSBqhvKwQd6oLV TUiALo8leMn/URfPJue93A7Cz7j20SsuKQNJFiGKKGzSvhSvAlYGfbkwPeM3qCqB 5tcf8y9ib5td/eRRrisgj97+KfFdVr4kokAK/7lnTTXx+ajrO6WwSHRgQ3sB0b6S 5P0N6Eilgva17Yn8bjDvcB+j4YLwyzbbGrVR/Tgj22iM+mTVsbxQRVD9zWjKou7j L6Zb3Chyub34/Ohcb0+B3w5Tq4lIDRSxAm12wZ20UbYBQglqbmtcQu8tJT4LLOYy cDZkLrlPFOCMqGHrsKLQd4Y7osSgfKW4cLgl9DNAyCmHZbAUznWu2QH9IvLsuGhk i86ezAg1OXApcvIqTsB/ =5Seq -----END PGP SIGNATURE----- --eqq5Le9VNi5o1NaU--