Avoid retrieving dummy NULL columns in postgres_fdw. This should provide some marginal overall savings, since it surely takes many more cycles for the remote server to deal with the NULL columns than it takes for postgres_fdw not to emit them. But really the reason is to keep the emitted queries from looking quite so silly ... Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/e690b9515072fd7767fdeca5c54166f6a77733bc Modified Files -------------- contrib/postgres_fdw/deparse.c | 95 +++++++--- contrib/postgres_fdw/expected/postgres_fdw.out | 250 +++++++++++++----------- contrib/postgres_fdw/postgres_fdw.c | 155 +++++++++------- contrib/postgres_fdw/postgres_fdw.h | 15 +- contrib/postgres_fdw/sql/postgres_fdw.sql | 4 +- 5 files changed, 301 insertions(+), 218 deletions(-)
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера