From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Fix pg_recvlogical for pre-10 versions |
Date: | 2018-03-18 12:13:53 |
Message-ID: | E1exXCD-0003as-FY@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(at)paquier(dot)xyz>
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/e7d3a37d9936f725807b4d5cdf471123a4805ef1
Modified Files
--------------
src/bin/pg_basebackup/streamutil.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2018-03-18 19:10:54 | pgsql: Doc: note that statement-level view triggers require an INSTEAD |
Previous Message | Tom Lane | 2018-03-17 19:38:41 | pgsql: Fix overflow handling in plpgsql's integer FOR loops. |