pgsql: Add cluster_name GUC which is included in process titles if set.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add cluster_name GUC which is included in process titles if set.
Date: 2014-06-29 12:24:10
Message-ID: E1X1E9S-0006SW-CK@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add cluster_name GUC which is included in process titles if set.

When running several postgres clusters on one OS instance it's often
inconveniently hard to identify which "postgres" process belongs to
which postgres instance.

Add the cluster_name GUC, whose value will be included as part of the
process titles if set. With that processes can more easily identified
using tools like 'ps'.

To avoid problems with encoding mismatches between postgresql.conf,
consoles, and individual databases replace non-ASCII chars in the name
with question marks. The length is limited to NAMEDATALEN to make it
less likely to truncate important information at the end of the
status.

Thomas Munro, with some adjustments by me and review by a host of people.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/51adcaa0df81da5e94b582d47de64ebb17129937

Modified Files
--------------
doc/src/sgml/config.sgml | 23 ++++++++++++++++++++
doc/src/sgml/monitoring.sgml | 16 ++++++++++++++
src/backend/utils/misc/guc.c | 28 +++++++++++++++++++++++++
src/backend/utils/misc/postgresql.conf.sample | 3 ++-
src/backend/utils/misc/ps_status.c | 22 +++++++++++++------
src/include/utils/guc.h | 1 +
6 files changed, 86 insertions(+), 7 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2014-06-29 17:51:10 pgsql: Remove use_json_as_text options from json_to_record/json_populat
Previous Message Andres Freund 2014-06-28 19:47:17 pgsql: Remove Alpha and Tru64 support.