Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YdPrl-0006Eg-Lw for pgsql-bugs@arkaria.postgresql.org; Wed, 01 Apr 2015 21:08:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YdPrl-0003Wg-0w for pgsql-bugs@arkaria.postgresql.org; Wed, 01 Apr 2015 21:08:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YdPrk-0003Wa-BF for pgsql-bugs@postgresql.org; Wed, 01 Apr 2015 21:08:00 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YdPrg-0008HL-Mf for pgsql-bugs@postgresql.org; Wed, 01 Apr 2015 21:07:59 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id ADE195F7B2; Wed, 1 Apr 2015 17:07:55 -0400 (EDT) Date: Wed, 1 Apr 2015 17:07:55 -0400 From: Stephen Frost 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 Message-ID: <20150401210755.GS3663@tamriel.snowman.net> References: <20150401193930.2550.67536@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="oIZeFZfK2rom9VmH" Content-Disposition: inline In-Reply-To: <20150401193930.2550.67536@wrigleys.postgresql.org> 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: 17:07:14 up 13 days, 2:55, 3 users, load average: 0.01, 0.05, 0.08 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 --oIZeFZfK2rom9VmH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --oIZeFZfK2rom9VmH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJVHF4rAAoJEO1sijiDR2RVjO8P/jDGIBVIe52jbwHwE5INEuSz 26EKFv04aM28qQvdhYBofRPTsSf5BLTowbpO5jiEWUJO/iBwdr1yd31xZ1Sdl++o C5nfacB/SfXwe/8tlDI+l6g44vXIJC2OV4fjABJ5WxgWZieUkYdTCMXS3HiYn7LF Vk2v3QHm97KbyswnPt656enbN6ym+hRXyMB1mi9sWjaAuziX96cgaBgkOixrMjwr +0AzjMsT8q3z8c0mUewT4uBfNJ6QyqWFVAvm4yTse4EteTlIvnDczPNS0hmI0/zg /+2AodTVSnKQUmwEhxzFixdt+wOeEUcv/xfNLCDfHw5aAhBRd4O7FeA8868sDYVb crCwXdPDVy8fWKE5183C7yG38b2p4tRWYW8Z0fRkWvOhgMkVghwvr8XEZDy+nyGk AGBJCmcdNT1+KZGsO4Ojo9KEWAnrKeIgY84DUUAZFd6n2+ktROv3YUUiP4r6mMob hPSOzSD1wTXRbCplLKJDQoT/R38o8n2nKyd5iwi2Peaga1AyOo5lW6h/56X/I+it gFkgWe+tiPShY48UGSSnfvmC5Bge1tBM3TcWCCBPdJWvy/KwnArFFxT3kUtkPL4b CzwQWsSpH8R4k9GMgIdsapsvPiBA3tZx0INLwDe5fdmdTrirTaaawPWkGaGOd5Gw AvFrnGQz1PdbJWm29NY7 =CNsg -----END PGP SIGNATURE----- --oIZeFZfK2rom9VmH--