Fix for missing port in pg_foreign_server: default to standard 5432

This commit is contained in:
Rafa de la Torre
2019-11-14 17:57:05 +01:00
parent 7f9905cbd5
commit 064cc2a76b
2 changed files with 6 additions and 2 deletions

View File

@@ -146,7 +146,7 @@ AS $$
plan = plpy.prepare("SELECT @extschema@.__CDB_FS_Foreign_Server_Port_PG($1) AS port", ['name'])
rv = plpy.execute(plan, [server_internal], 1)
port = rv[0]['port']
port = rv[0]['port'] or 5432
n_errors = 0
samples = []