-
- Downloads
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.
Showing
- contrib/postgres_fdw/connection.c 29 additions, 0 deletionscontrib/postgres_fdw/connection.c
- contrib/postgres_fdw/deparse.c 69 additions, 32 deletionscontrib/postgres_fdw/deparse.c
- contrib/postgres_fdw/expected/postgres_fdw.out 82 additions, 82 deletionscontrib/postgres_fdw/expected/postgres_fdw.out
Loading
Please register or sign in to comment