pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Hagander <magnus@hagander.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix pg_recvlogical for pre-10 versions
Date: Sun, 18 Mar 2018 12:13:53 +0000
Message-ID: <E1exXCD-0003aw-G0@gemulon.postgresql.org> (raw)

Fix pg_recvlogical for pre-10 versions

In e170b8c8, protection against modified search_path was added. However,
PostgreSQL versions prior to 10 does not accept SQL commands over a
replication connection, so the protection would generate a syntax error.

Since we cannot run SQL commands on it, we are also not vulnerable to
the issue that e170b8c8 fixes, so we can just skip this command for
older versions.

Author: Michael Paquier <michael@paquier.xyz>

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/24ff0fe87755c76a14332a03a08b62b85c9bc91d

Modified Files
--------------
src/bin/pg_basebackup/streamutil.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)



view thread (5+ messages)  latest in thread

Message-ID: <E1exXCD-0003aw-G0@gemulon.postgresql.org>
Permalink:  ../E1exXCD-0003aw-G0@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1exXCD-0003aw-G0@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: magnus@hagander.net
  Subject: Re: pgsql: Fix pg_recvlogical for pre-10 versions
  In-Reply-To: <E1exXCD-0003aw-G0@gemulon.postgresql.org>
  References: <E1exXCD-0003aw-G0@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