| From: | Thomas Munro <munro(at)ip9(dot)org> |
|---|---|
| To: | Andres Freund <andres(at)2ndquadrant(dot)com> |
| Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Cluster name in ps output |
| Date: | 2014-05-05 12:57:15 |
| Message-ID: | CADLWmXVsQs0RyD_Q_XTF8O9NBVWQW0exuB1jpyF7r=mEjQ7Z9g@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 5 May 2014 10:49, Thomas Munro <munro(at)ip9(dot)org> wrote:
> On 5 May 2014 10:10, Andres Freund <andres(at)2ndquadrant(dot)com> wrote:
>
>> I guess the question is where this should be available as well. At the
>> very least I'd want to reference it in log_line_prefix as well?
>>
>
> Good idea, I will look into that.
>
See v2 patch attached which lets you use %C for cluster name in the log
prefix.
Maybe it would be overkill, but seeing the various responses about which
information belongs in the ps string, I guess we could also use a format
string with %blah fields for that. Then the Debian/Ubuntu package users
who tend to think of the major version + name as the complete cluster
identifier could use "[%V/%C] ..." to get "postgres: [9.3/main] ...", and
others could throw in a "%P" to see a port number.
| Attachment | Content-Type | Size |
|---|---|---|
| cluster-name-in-ps-v2.patch | text/x-patch | 2.9 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Heikki Linnakangas | 2014-05-05 13:08:42 | Re: Fix initdb for path with whitespace and at char |
| Previous Message | Stephen Frost | 2014-05-05 12:11:51 | Re: Cluster name in ps output |