pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Re-establish postgres_fdw connections after server or user mappi 5+ messages / 1 participants [nested] [flat]
* pgsql: Re-establish postgres_fdw connections after server or user mappi @ 2017-07-21 16:51 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2017-07-21 16:51 UTC (permalink / raw) To: pgsql-committers Re-establish postgres_fdw connections after server or user mapping changes. Previously, postgres_fdw would keep on using an existing connection even if the user did ALTER SERVER or ALTER USER MAPPING commands that should affect connection parameters. Teach it to watch for catcache invals on these catalogs and re-establish connections when the relevant catalog entries change. Per bug #14738 from Michal Lis. In passing, clean up some rather crufty decisions in commit ae9bfc5d6 about where fields of ConnCacheEntry should be reset. We now reset all the fields whenever we open a new connection. Kyotaro Horiguchi, reviewed by Ashutosh Bapat and myself. Back-patch to 9.3 where postgres_fdw appeared. Discussion: https://postgr.es/m/20170710113917.7727.10247@wrigleys.postgresql.org Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/8bf58c0d9bd336868e2d6489f11dc094cad9ad91 Modified Files -------------- contrib/postgres_fdw/connection.c | 118 +++++++++++++++++++++---- contrib/postgres_fdw/expected/postgres_fdw.out | 37 ++++++++ contrib/postgres_fdw/sql/postgres_fdw.sql | 20 +++++ 3 files changed, 157 insertions(+), 18 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Re-establish postgres_fdw connections after server or user mappi @ 2017-07-21 16:51 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2017-07-21 16:51 UTC (permalink / raw) To: pgsql-committers Re-establish postgres_fdw connections after server or user mapping changes. Previously, postgres_fdw would keep on using an existing connection even if the user did ALTER SERVER or ALTER USER MAPPING commands that should affect connection parameters. Teach it to watch for catcache invals on these catalogs and re-establish connections when the relevant catalog entries change. Per bug #14738 from Michal Lis. In passing, clean up some rather crufty decisions in commit ae9bfc5d6 about where fields of ConnCacheEntry should be reset. We now reset all the fields whenever we open a new connection. Kyotaro Horiguchi, reviewed by Ashutosh Bapat and myself. Back-patch to 9.3 where postgres_fdw appeared. Discussion: https://postgr.es/m/20170710113917.7727.10247@wrigleys.postgresql.org Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d86a2b7b58bc9e5455a77f37690bf4588f4d2836 Modified Files -------------- contrib/postgres_fdw/connection.c | 118 +++++++++++++++++++++---- contrib/postgres_fdw/expected/postgres_fdw.out | 37 ++++++++ contrib/postgres_fdw/sql/postgres_fdw.sql | 20 +++++ 3 files changed, 157 insertions(+), 18 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Re-establish postgres_fdw connections after server or user mappi @ 2017-07-21 16:51 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2017-07-21 16:51 UTC (permalink / raw) To: pgsql-committers Re-establish postgres_fdw connections after server or user mapping changes. Previously, postgres_fdw would keep on using an existing connection even if the user did ALTER SERVER or ALTER USER MAPPING commands that should affect connection parameters. Teach it to watch for catcache invals on these catalogs and re-establish connections when the relevant catalog entries change. Per bug #14738 from Michal Lis. In passing, clean up some rather crufty decisions in commit ae9bfc5d6 about where fields of ConnCacheEntry should be reset. We now reset all the fields whenever we open a new connection. Kyotaro Horiguchi, reviewed by Ashutosh Bapat and myself. Back-patch to 9.3 where postgres_fdw appeared. Discussion: https://postgr.es/m/20170710113917.7727.10247@wrigleys.postgresql.org Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/72318eaedea55fa0170153c065e0d02157108de3 Modified Files -------------- contrib/postgres_fdw/connection.c | 131 +++++++++++++++++++++---- contrib/postgres_fdw/expected/postgres_fdw.out | 37 +++++++ contrib/postgres_fdw/sql/postgres_fdw.sql | 20 ++++ 3 files changed, 170 insertions(+), 18 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Re-establish postgres_fdw connections after server or user mappi @ 2017-07-21 16:51 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2017-07-21 16:51 UTC (permalink / raw) To: pgsql-committers Re-establish postgres_fdw connections after server or user mapping changes. Previously, postgres_fdw would keep on using an existing connection even if the user did ALTER SERVER or ALTER USER MAPPING commands that should affect connection parameters. Teach it to watch for catcache invals on these catalogs and re-establish connections when the relevant catalog entries change. Per bug #14738 from Michal Lis. In passing, clean up some rather crufty decisions in commit ae9bfc5d6 about where fields of ConnCacheEntry should be reset. We now reset all the fields whenever we open a new connection. Kyotaro Horiguchi, reviewed by Ashutosh Bapat and myself. Back-patch to 9.3 where postgres_fdw appeared. Discussion: https://postgr.es/m/20170710113917.7727.10247@wrigleys.postgresql.org Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/cb2b1cac0c331493dc3a316f92834bfad1b62149 Modified Files -------------- contrib/postgres_fdw/connection.c | 131 +++++++++++++++++++++---- contrib/postgres_fdw/expected/postgres_fdw.out | 37 +++++++ contrib/postgres_fdw/sql/postgres_fdw.sql | 20 ++++ 3 files changed, 170 insertions(+), 18 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Re-establish postgres_fdw connections after server or user mappi @ 2017-07-21 16:51 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2017-07-21 16:51 UTC (permalink / raw) To: pgsql-committers Re-establish postgres_fdw connections after server or user mapping changes. Previously, postgres_fdw would keep on using an existing connection even if the user did ALTER SERVER or ALTER USER MAPPING commands that should affect connection parameters. Teach it to watch for catcache invals on these catalogs and re-establish connections when the relevant catalog entries change. Per bug #14738 from Michal Lis. In passing, clean up some rather crufty decisions in commit ae9bfc5d6 about where fields of ConnCacheEntry should be reset. We now reset all the fields whenever we open a new connection. Kyotaro Horiguchi, reviewed by Ashutosh Bapat and myself. Back-patch to 9.3 where postgres_fdw appeared. Discussion: https://postgr.es/m/20170710113917.7727.10247@wrigleys.postgresql.org Branch ------ REL9_3_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/69711415e6fd8d61c0760c2208f121a5b89d4126 Modified Files -------------- contrib/postgres_fdw/connection.c | 131 +++++++++++++++++++++---- contrib/postgres_fdw/expected/postgres_fdw.out | 37 +++++++ contrib/postgres_fdw/sql/postgres_fdw.sql | 20 ++++ 3 files changed, 170 insertions(+), 18 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2017-07-21 16:51 UTC | newest] Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2017-07-21 16:51 pgsql: Re-establish postgres_fdw connections after server or user mappi Tom Lane <tgl@sss.pgh.pa.us> 2017-07-21 16:51 pgsql: Re-establish postgres_fdw connections after server or user mappi Tom Lane <tgl@sss.pgh.pa.us> 2017-07-21 16:51 pgsql: Re-establish postgres_fdw connections after server or user mappi Tom Lane <tgl@sss.pgh.pa.us> 2017-07-21 16:51 pgsql: Re-establish postgres_fdw connections after server or user mappi Tom Lane <tgl@sss.pgh.pa.us> 2017-07-21 16:51 pgsql: Re-establish postgres_fdw connections after server or user mappi Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox