pgsql: postgres_fdw and dblink should check if backend has MyProcPort

Started by Peter Eisentraut11 months ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

postgres_fdw and dblink should check if backend has MyProcPort

before checking ->has_scram_keys. MyProcPort is NULL in background
workers. So this could crash for example if a background worker
accessed a suitable configured foreign table.

Author: Alexander Pyhalov <a.pyhalov@postgrespro.ru>
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Reviewed-by: Matheus Alcantara <matheusssilv97@gmail.com>
Discussion: /messages/by-id/27b29a35-9b96-46a9-bc1a-914140869dac@gmail.com

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/762fed90bfee248ca090a96fe883e063ba035088

Modified Files
--------------
contrib/dblink/dblink.c | 8 ++++----
contrib/postgres_fdw/connection.c | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)