[psql] patch to fix ordering in words_after_create array

Rushabh Lathia <rushabh.lathia@gmail.com>

From: Rushabh Lathia <rushabh.lathia@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2017-03-24T11:10:36Z
Lists: pgsql-hackers

Attachments

Hi All,

While looking at the code around tab-complete.c, I
found the ordering in words_after_create array is not
correct for DEFAULT PRIVILEGES, which been added
under below commit:

commit d7d77f3825122bde55be9e06f6c4851028b99795
Author: Peter Eisentraut <peter_e@gmx.net>
Date:   Thu Mar 16 18:54:28 2017 -0400

    psql: Add completion for \help DROP|ALTER

PFA patch to fix the same.

Thanks,
Rushabh Lathia
www.EnterpriseDB.com

Commits

  1. psql: Restore alphabetical order in words_after_create.

  2. psql: Add completion for \help DROP|ALTER