pgsql: Fix handling of escape sequences in postgres_fdw.application_nam

2023-02-21 Thread Michael Paquier
Fix handling of escape sequences in postgres_fdw.application_name postgres_fdw.application_name relies on MyProcPort to define the data that should be added to escape sequences %u (user name) or %d (database name). However this code could be run in processes that lack a MyProcPort, like an autova

pgsql: Fix handling of escape sequences in postgres_fdw.application_nam

2023-02-21 Thread Michael Paquier
Fix handling of escape sequences in postgres_fdw.application_name postgres_fdw.application_name relies on MyProcPort to define the data that should be added to escape sequences %u (user name) or %d (database name). However this code could be run in processes that lack a MyProcPort, like an autova