pgAdmin 4 commit: Allow creation of FDWs if the extension is in a non-d

Поиск
Список
Период
Сортировка
Искать

pgAdmin 4 commit: Allow creation of FDWs if the extension is in a non-d

От:
Dave Page <dpage@pgadmin.org>
Дата:
Allow creation of FDWs if the extension is in a non-default schema. Fixes #1320

Root cause:-

When user change schema of already created fdw extension then while creating the new fdw we should append the ..
Previously we added only  so while executing the query it will not be able to find fdw handler name without schema name.

e.g. If user changed the fdw handler 'postgres_fdw_handler' under schema 'test' then we should display the handler  name under fdw as "test. postgres_fdw_handler".

Solution:-

With this patch, we have added . so while creating or updating the fdw, proper sql will be generated.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=dbd3c7f4c5dab4aafa81ade9cfe5b309c8b5cdbf
Author: Neel Patel 

Modified Files
--------------
.../servers/databases/foreign_data_wrappers/__init__.py        |  4 ++--
.../templates/foreign_data_wrappers/sql/9.1_plus/create.sql    |  4 ++--
.../templates/foreign_data_wrappers/sql/9.1_plus/handlers.sql  |  5 ++++-
.../foreign_data_wrappers/sql/9.1_plus/properties.sql          | 10 +++++++---
.../templates/foreign_data_wrappers/sql/9.1_plus/update.sql    |  4 ++--
.../foreign_data_wrappers/sql/9.1_plus/validators.sql          |  5 ++++-
.../templates/foreign_data_wrappers/sql/9.3_plus/create.sql    |  4 ++--
.../templates/foreign_data_wrappers/sql/9.3_plus/handlers.sql  |  5 ++++-
.../foreign_data_wrappers/sql/9.3_plus/properties.sql          |  8 ++++++--
.../templates/foreign_data_wrappers/sql/9.3_plus/update.sql    |  4 ++--
.../foreign_data_wrappers/sql/9.3_plus/validators.sql          |  5 ++++-
11 files changed, 39 insertions(+), 19 deletions(-)

FAQ