From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Ioseph Kim <pgsql-kr@postgresql.kr>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: increase message string buffer size of watch command of psql
Date: Wed, 15 Jun 2016 16:38:03 -0400
Message-ID: <20160615203803.GA25616@alvherre.pgsql> (raw)
In-Reply-To: <20132.1465923383@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Tom Lane wrote:
> I wrote:
> > Well, we did part of that, but it's still using asctime(). Should we
> > change that to strftime(..."%c"...) to be less English-centric?
> > (The result seems to be the same in C locale. pg_controldata has done
> > it that way for a long time, with few complaints.) If we want to do so,
> > now would be the time, since 9.6 already whacked around the format
> > of \watch output.
>
> I take it from the vast silence that nobody particularly cares one way
> or the other. On reflection I think that this would be a good change
> to make, so I'll go do so unless I hear complaints soon.
+1 to strftime("%c"). If we wanted to provide additional flexibility we
could have a \pset option to change the strftime format string to
something other than %c, but I don't think there's enough demand to
justify it.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: alvherre@2ndquadrant.com, tgl@sss.pgh.pa.us, robertmhaas@gmail.com, pgsql-kr@postgresql.kr
Subject: Re: increase message string buffer size of watch command of psql
In-Reply-To: <20160615203803.GA25616@alvherre.pgsql>
References: <20132.1465923383@sss.pgh.pa.us> <20160615203803.GA25616@alvherre.pgsql>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox