pgsql: Adjust postgres_fdw's search path handling.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Adjust postgres_fdw's search path handling.
Дата
Msg-id E1U8qRL-0005VT-Fq@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Move relpath() to libpgcommon
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: If recovery.conf is created after "pg_ctl stop -m i", do crash r