pgsql: Improve formatting of create_help.pl and plperl_opmask.pl output

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve formatting of create_help.pl and plperl_opmask.pl output
Date: 2020-09-17 00:31:52
Message-ID: E1kIhq4-0000Kx-4z@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Improve formatting of create_help.pl and plperl_opmask.pl output.

Adjust the whitespace in the emitted files so that it matches
what pgindent would do. This makes the generated files look
like they match project style, and avoids confusion if someone
does run pgindent on the generated files.

Also, add probes.h to pgindent's exclusion list, because it can
confuse pgindent, plus there's not much point in processing it.

Daniel Gustafsson, additional fixes by me

Discussion: https://postgr.es/m/79ed5348-be7a-b647-dd40-742207186a22@2ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/add105840b673ab3949abc2568da0d4f2fd496c5

Modified Files
--------------
src/bin/psql/create_help.pl | 25 +++++++++++++------------
src/pl/plperl/plperl_opmask.pl | 2 +-
src/tools/pgindent/README | 8 ++++++++
src/tools/pgindent/exclude_file_patterns | 1 +
4 files changed, 23 insertions(+), 13 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2020-09-17 01:06:56 pgsql: Teach walsender to update its process title for replication comm
Previous Message Alvaro Herrera 2020-09-17 00:18:08 pgsql: Fix bogus completion tag usage in walsender