]> granicus.if.org Git - postgresql/commit
Fix incorrect pattern-match processing in psql's \det command.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 29 Jan 2016 09:28:02 +0000 (10:28 +0100)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 29 Jan 2016 09:28:02 +0000 (10:28 +0100)
commit56251f3965ac5563bb19ef8f17ee27ac95359ce7
tree409ea77a2e5ff3e267c863e898d634d2203c089c
parentcb89a3afaa7196954fed42b7b823b5cdfbf2a455
Fix incorrect pattern-match processing in psql's \det command.

listForeignTables' invocation of processSQLNamePattern did not match up
with the other ones that handle potentially-schema-qualified names; it
failed to make use of pg_table_is_visible() and also passed the name
arguments in the wrong order.  Bug seems to have been aboriginal in commit
0d692a0dc9f0e532.  It accidentally sort of worked as long as you didn't
inquire too closely into the behavior, although the silliness was later
exposed by inconsistencies in the test queries added by 59efda3e50ca4de6
(which I probably should have questioned at the time, but didn't).

Per bug #13899 from Reece Hart.  Patch by Reece Hart and Tom Lane.
Back-patch to all affected branches.
contrib/postgres_fdw/expected/postgres_fdw.out
contrib/postgres_fdw/sql/postgres_fdw.sql
src/bin/psql/describe.c