[patch] psql tab completion for ALTER DEFAULT PRIVILEGES

From: Gilles Darold <gilles(dot)darold(at)dalibo(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: [patch] psql tab completion for ALTER DEFAULT PRIVILEGES
Date: 2016-11-20 14:46:14
Message-ID: 1614593c-e356-5b27-6dba-66320a9bc68b@dalibo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

When tab-completing after ALTER DEFAULT PRIVILEGES ... GRANT|REVOKE,
currently psql injects completion from the GRANT|REVOKE order, rather
than the one expected.

A patch is attached. It adds the right completion to GRANT|REVOKE after
ALTER DEFAULT PRIVILEGES and after FOR ROLE|USER + IN SCHEMA.

If there's no objection I will add it to next commit fest.

Best regards,

--
Gilles Darold
Consultant PostgreSQL
http://dalibo.com - http://dalibo.org

Attachment Content-Type Size
patch-completion-alter-default-privileges.diff text/x-diff 3.6 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2016-11-20 14:59:04 Re: Mail thread references in commits
Previous Message Andreas Seltenreich 2016-11-20 13:53:56 [sqlsmith] Parallel worker crash on seqscan