Fix recent commit for tab-completion of database template.
authorKevin Grittner <kgrittn@postgresql.org>
Mon, 12 Sep 2016 14:22:57 +0000 (09:22 -0500)
committerKevin Grittner <kgrittn@postgresql.org>
Mon, 12 Sep 2016 14:22:57 +0000 (09:22 -0500)
commit63c1a871940c7c4798788e98fdb1a24408a49d05
tree4ea9306555158615f3c9325903f34698bbc503d8
parent4068eb9918cbbeaba8042fa6fe0c1f5382f2f05f
Fix recent commit for tab-completion of database template.

The details of commit 52803098ab26051c0c9802f3c19edffc90de8843 were
based on a misunderstanding of the role inheritance allowing use
of a database for a template.  While the CREATEDB privilege is not
inherited, the database ownership is privileges are.

Pointed out by Vitaly Burovoy and Tom Lane.
Fix provided by Tom Lane, reviewed by Vitaly Burovoy.
src/bin/psql/tab-complete.c