Application name for pg_basebackup and friends

From: Jesper Pedersen <jesper(dot)pedersen(at)redhat(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Application name for pg_basebackup and friends
Date: 2019-10-31 12:52:58
Message-ID: e8d28714-75ba-5411-f608-f2ad7b85cff9@redhat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

The attached patch adds an -a / --appname command line switch to
pg_basebackup, pg_receivewal and pg_recvlogical.

This is useful when f.ex. pg_receivewal needs to connect as a
synchronous client (synchronous_standby_names),

pg_receivewal -h myhost -p 5432 -S replica1 -a replica1 --synchronous
-D /wal

I'll add the patch to the CommitFest for discussion, as there is overlap
with the -d switch.

Best regards,
Jesper

Attachment Content-Type Size
v1_0001-Add-an-a-appname-command-line-switch-to-control-the.patch text/x-patch 9.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2019-10-31 13:10:35 Re: Application name for pg_basebackup and friends
Previous Message Ibrar Ahmed 2019-10-31 12:34:22 Re: Allow CREATE OR REPLACE VIEW to rename the columns