]> granicus.if.org Git - postgresql/commit
Adjust postgres_fdw's search path handling.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 22 Feb 2013 11:03:46 +0000 (06:03 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 22 Feb 2013 11:04:49 +0000 (06:04 -0500)
commit6d06049493862f7f6b639035198fc817949723ae
tree561127ddc27913b18141b726833180db7a5f8338
parentabf5c5c9a4f142b3343614746bb9e99a794f8e7b
Adjust postgres_fdw's search path handling.

Set the remote session's search path to exactly "pg_catalog" at session
start, then schema-qualify only names that aren't in that schema.  This
greatly reduces clutter in the generated SQL commands, as seen in the
regression test changes.  Per discussion.

Also, rethink use of FirstNormalObjectId as the "built-in object" cutoff
--- FirstBootstrapObjectId is safer, since the former will accept
objects in information_schema for instance.
contrib/postgres_fdw/connection.c
contrib/postgres_fdw/deparse.c
contrib/postgres_fdw/expected/postgres_fdw.out