pgsql: Fix pg_recvlogical for pre-10 versions

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема pgsql: Fix pg_recvlogical for pre-10 versions
Дата
Msg-id E1exXCD-0003aq-FR@gemulon.postgresql.org
обсуждение исходный текст
Список 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@paquier.xyz>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8d2814f274def85f39fbe997d454b01628cb5667

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


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix overflow handling in plpgsql's integer FOR loops.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Doc: note that statement-level view triggers require anINSTEAD