pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve placement of "display name" comment in win32_tzmap[] ent
Date: Fri, 24 Apr 2020 21:53:52 +0000
Message-ID: <E1jS6Ge-0001wb-SI@gemulon.postgresql.org> (raw)

Improve placement of "display name" comment in win32_tzmap[] entries.

Sticking this comment at the end of the last line was a bad idea: it's
not particularly readable, and it tempts pgindent to mess with line
breaks within the comment, which in turn reveals that win32tzlist.pl's
clean_displayname() does the wrong thing to clean up such line breaks.
While that's not hard to fix, there's basically no excuse for this
arrangement to begin with, especially since it makes the table layout
needlessly vary across back branches with different pgindent rules.
Let's just put the comment inside the braces, instead.

This commit just moves and reformats the comments, and updates
win32tzlist.pl to match; there's no actual data change.

Per odd-looking results from Juan José Santamaría Flecha.
Back-patch, since the point is to make win32_tzmap[] look the
same in all supported branches again.

Discussion: https://postgr.es/m/5752.1587740484@sss.pgh.pa.us

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4985b3b84918025f65b268df08d00c214411ebff

Modified Files
--------------
src/bin/initdb/findtimezone.c | 439 +++++++++++++++++++++++++++---------------
src/tools/win32tzlist.pl      |  14 +-
2 files changed, 292 insertions(+), 161 deletions(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1jS6Ge-0001wb-SI@gemulon.postgresql.org>
Permalink:  ../E1jS6Ge-0001wb-SI@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jS6Ge-0001wb-SI@gemulon.postgresql.org

 · 

reply

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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Improve placement of "display name" comment in win32_tzmap[] ent
  In-Reply-To: <E1jS6Ge-0001wb-SI@gemulon.postgresql.org>
  References: <E1jS6Ge-0001wb-SI@gemulon.postgresql.org>

* 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