pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: postgres_fdw: set search_path to 'pg_catalog' while deparsing co
Date: Sun, 17 Jul 2022 21:28:22 +0000
Message-ID: <E1oDBoM-000h9u-9t@gemulon.postgresql.org> (raw)

postgres_fdw: set search_path to 'pg_catalog' while deparsing constants.

The motivation for this is to ensure successful transmission of the
values of constants of regconfig and other reg* types.  The remote
will be reading them with search_path = 'pg_catalog', so schema
qualification is necessary when referencing objects in other schemas.

Per bug #17483 from Emmanuel Quincerot.  Back-patch to all supported
versions.  (There's some other stuff to do here, but it's less
back-patchable.)

Discussion: https://postgr.es/m/1423433.1652722406@sss.pgh.pa.us

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/810bcbd383ab615a24ea972db0e1157572f3a12c

Modified Files
--------------
contrib/postgres_fdw/expected/postgres_fdw.out | 20 ++++++++++++++++++++
contrib/postgres_fdw/postgres_fdw.c            |  8 ++++++++
contrib/postgres_fdw/sql/postgres_fdw.sql      |  9 +++++++++
3 files changed, 37 insertions(+)



view thread (7+ messages)  latest in thread

Message-ID: <E1oDBoM-000h9u-9t@gemulon.postgresql.org>
Permalink:  ../E1oDBoM-000h9u-9t@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oDBoM-000h9u-9t@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: postgres_fdw: set search_path to 'pg_catalog' while deparsing co
  In-Reply-To: <E1oDBoM-000h9u-9t@gemulon.postgresql.org>
  References: <E1oDBoM-000h9u-9t@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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