Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cKdZl-0006If-Da for pgsql-committers@arkaria.postgresql.org; Sat, 24 Dec 2016 04:04:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cKdZk-0006RU-N3 for pgsql-committers@arkaria.postgresql.org; Sat, 24 Dec 2016 04:04:52 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cKdZk-0006RN-5s for pgsql-committers@postgresql.org; Sat, 24 Dec 2016 04:04:52 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cKdZh-0001YX-FW for pgsql-committers@postgresql.org; Sat, 24 Dec 2016 04:04:50 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 25F7E5F794; Fri, 23 Dec 2016 23:03:48 -0500 (EST) Date: Fri, 23 Dec 2016 23:03:48 -0500 From: Stephen Frost To: Robert Haas Cc: pgsql-committers Subject: Re: pgsql: Fix tab completion in psql for ALTER DEFAULT PRIVILEGES Message-ID: <20161224040348.GG18360@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="y0SACtZlsHo4Vp7j" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-91-generic (x86_64) X-Uptime: 22:59:31 up 168 days, 5:23, 36 users, load average: 0.24, 0.10, 0.07 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -5.0 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org --y0SACtZlsHo4Vp7j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Robert Haas (robertmhaas@gmail.com) wrote: > On Fri, Dec 23, 2016 at 9:02 PM, Stephen Frost wrote: > > Lastly, we weren't using the actual list of allowed kinds of > > objects for default privileges for completion after the 'GRANT X ON' but > > instead were completeing to what 'GRANT X ON' supports, which isn't the > > ssame at all. >=20 > /me scratches head. 'ALTER DEFAULT PRIVILEGES ... GRANT X ON' can be followed by the literal term 'TABLES', or 'FUNCTIONS', etc. 'GRANT X ON ' can be followed by an actual table. A bit awkward to write out in a single sentence though. Thanks! Stephen --y0SACtZlsHo4Vp7j Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYXfOjAAoJEO1sijiDR2RVfR0QALLoQ5U953lPOinswnKUUZfg 06rOg4yTfgumRpwCzH1WAEKE//eIX5v6G0b8TZj7bow13qrYQU8FuFpSSqzk+pyS qi2iWZZcxzJeDhiCOi4fHaGiSB7a4MVP6lZ7yIZqaM6r/uNV6vsUf1lGm+hB7ors nYKESw19M5T6pyZb4Z6wocT7FTFEo+2bqOd76ThN1PxUcTitV30Ir4XSGPDhB1mv q6/YI1XvWfhMMk2yozjwD2hUZV+cjV8lNc+cO8BLbOoPmp5Y70oc5n5wnSmC8LKG ihx/vHBzg6ven/qDwBZ33UUxAV10Gp4+7SS7ZTEC8XZHcmcxQAR5i9rwTAV5J9o9 n7ywNSTMcJFKo/5hgqTQJU9QuXTdbncJEQusslqvJ9qMDc9ApF2jOm3d9tMZNN6v rnA0srvBR+IHi+AacH2LSC6oyVUB89fYndAROTXMhDtmrzT7pnrgbOQTfj37296a usC2/c8tDR2xzGd7JhKRVKUGeL7tGvng1cYIIofz9l7LYesEZ4Cd6Dt7kaaHNBto coCrtMCut4vXjZ6Mb7DD5Og4XgOQS+Q/SuHCGiEqp6mYRZPEvwVAFmVrayK8nq8n QTYTNxFa9R1X+XKpzGtzTEdBtpkb8xGSYCr0s9MRdcnpeWZL+ZucCVrBeCJ83Rgx +K4xXwzfzonaADxldkZp =k0Xd -----END PGP SIGNATURE----- --y0SACtZlsHo4Vp7j--