]> granicus.if.org Git - postgresql/commit
Fix pg_recvlogical for pre-10 versions
authorMagnus Hagander <magnus@hagander.net>
Sun, 18 Mar 2018 12:08:25 +0000 (13:08 +0100)
committerMagnus Hagander <magnus@hagander.net>
Sun, 18 Mar 2018 12:11:49 +0000 (13:11 +0100)
commit24ff0fe87755c76a14332a03a08b62b85c9bc91d
tree65eb74e9bab841e43a3a625a0fac4f174a143f76
parentb3fade55cba65f551fd7315ceedbca930248a525
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>
src/bin/pg_basebackup/streamutil.c