This contains some edits to comments that referred to the obsolete and bogus TupleDesc scanning. No mechanical alterations.
--- a/contrib/dblink/dblink.c +++ b/contrib/dblink/dblink.c @@ -2961,9 +2961,8 @@ initRemoteGucs(remoteGucs *rgs, PGconn *conn) } /* - * Scan a TupleDesc and, should it contain types that are sensitive to - * GUCs, acquire remote GUCs and set them in a new GUC nesting level. - * This is undone with restoreLocalGucs. + * Acquire remote GUCs that may affect type parsing and set them in a + * new GUC nesting level. */ static void applyRemoteGucs(remoteGucs *rgs) @@ -2974,11 +2973,8 @@ applyRemoteGucs(remoteGucs *rgs) int addedGucNesting = false; /* - * Affected types require local GUC manipulations. Create a new - * GUC NestLevel to overlay the remote settings. - * - * Also, this nesting is done exactly once per remoteGucInfo - * structure, so expect it to come with an invalid NestLevel. + * This nesting is done exactly once per remoteGucInfo structure, + * so expect it to come with an invalid NestLevel. */ Assert(rgs->localGUCNestLevel == -1); diff --git a/contrib/dblink/expected/dblink.out b/contrib/dblink/expected/dblink.out index 3946485..579664e 100644 --- a/contrib/dblink/expected/dblink.out +++ b/contrib/dblink/expected/dblink.out @@ -930,9 +930,8 @@ SELECT dblink_exec('myconn', 'SET datestyle = GERMAN, DMY;'); SET (1 row) --- The following attempt test various paths at which TupleDescs are --- formed and inspected for containment of types requiring local GUC --- setting. +-- The following attempt test various paths at which tuples are formed +-- and inspected for containment of types requiring local GUC setting. -- single row synchronous case SELECT * FROM dblink('myconn', diff --git a/contrib/dblink/sql/dblink.sql b/contrib/dblink/sql/dblink.sql index de925eb..7ff43fd 100644 --- a/contrib/dblink/sql/dblink.sql +++ b/contrib/dblink/sql/dblink.sql @@ -435,9 +435,8 @@ SET timezone = UTC; SELECT dblink_connect('myconn','dbname=contrib_regression'); SELECT dblink_exec('myconn', 'SET datestyle = GERMAN, DMY;'); --- The following attempt test various paths at which TupleDescs are --- formed and inspected for containment of types requiring local GUC --- setting. +-- The following attempt test various paths at which tuples are formed +-- and inspected for containment of types requiring local GUC setting. -- single row synchronous case SELECT * -- fdr
dblink-guc-sensitive-types-v7.patch
Description: Binary data
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers