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. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/6d06049493862f7f6b639035198fc817949723ae Modified Files -------------- contrib/postgres_fdw/connection.c | 29 ++++ contrib/postgres_fdw/deparse.c | 101 ++++++++++----- contrib/postgres_fdw/expected/postgres_fdw.out | 164 ++++++++++++------------ 3 files changed, 180 insertions(+), 114 deletions(-)
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера