Re: WIP patch for Todo Item : Provide fallback_application_name in contrib/pgbench, oid2name, and dblink - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: WIP patch for Todo Item : Provide fallback_application_name in contrib/pgbench, oid2name, and dblink
Date
Msg-id 005b01cd47b4$e94c0090$bbe401b0$@kapila@huawei.com
Whole thread Raw
In response to WIP patch for Todo Item : Provide fallback_application_name in contrib/pgbench, oid2name, and dblink  (Amit kapila <amit.kapila@huawei.com>)
List pgsql-hackers

As per the previous discussion in link below, it seems that fallback application name needs to be provided for only

pgbench and oid2name.

http://archives.postgresql.org/message-id/w2g9837222c1004070216u3bc46b3ahbddfdffdbfb46212@mail.gmail.com

 

However the title of Todo Item suggests it needs to be done for dblink as well.

Please suggest if it needs to be done for dblink, if yes then what should be fallback_application_name for it?

 

 

 

From: pgsql-hackers-owner@postgresql.org [mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of Amit kapila
Sent: Friday, June 08, 2012 10:45 PM
To: pgsql-hackers@postgresql.org
Subject: [HACKERS] WIP patch for Todo Item : Provide fallback_application_name in contrib/pgbench, oid2name, and dblink

 

This patch is to provide support for fallback application name for contrib/pgbench, oid2name, and dblink.

Currently I have done the implementation for pgbench. The implementation is same as in psql.

Before creating a final patch, I wanted to check whether my direction for creating a patch is what is expected from this Todo item.

 

I have done the basic testing for following 2 scenario's

1. After implementation, if during run of pgbench, we query pg_stat_activity it displays the application name as pgbench

2. It displays the application name in log file also.

 

Suggestions?

 

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Resource Owner reassign Locks
Next
From: Asif Naeem
Date:
Subject: pgdump tar bug (PG 9.2)