pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Avoid splitting C string literals with \-newline
Date: Tue, 24 Dec 2019 16:00:00 +0000
Message-ID: <E1ijmbI-0002H9-Cw@gemulon.postgresql.org> (raw)

Avoid splitting C string literals with \-newline

Using \ is unnecessary and ugly, so remove that.  While at it, stitch
the literals back into a single line: we've long discouraged splitting
error message literals even when they go past the 80 chars line limit,
to improve greppability.

Leave contrib/tablefunc alone.

Discussion: https://postgr.es/m/20191223195156.GA12271@alvherre.pgsql

Branch
------
master

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

Modified Files
--------------
contrib/dblink/dblink.c                         | 15 +++++----------
contrib/pg_stat_statements/pg_stat_statements.c |  3 +--
contrib/tablefunc/tablefunc.c                   | 12 ++++--------
src/backend/access/transam/xlog.c               |  4 +---
src/backend/access/transam/xlogfuncs.c          |  3 +--
src/backend/commands/extension.c                |  9 +++------
src/backend/commands/prepare.c                  |  3 +--
src/backend/executor/execExprInterp.c           |  4 ++--
src/backend/libpq/hba.c                         |  3 +--
src/backend/replication/logical/launcher.c      |  3 +--
src/backend/replication/slotfuncs.c             |  3 +--
src/backend/replication/walsender.c             |  3 +--
src/backend/utils/adt/pgstatfuncs.c             |  6 ++----
src/backend/utils/misc/guc.c                    |  3 +--
src/backend/utils/mmgr/portalmem.c              |  3 +--
15 files changed, 26 insertions(+), 51 deletions(-)



Message-ID: <E1ijmbI-0002H9-Cw@gemulon.postgresql.org>
Permalink:  ../E1ijmbI-0002H9-Cw@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ijmbI-0002H9-Cw@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: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Avoid splitting C string literals with \-newline
  In-Reply-To: <E1ijmbI-0002H9-Cw@gemulon.postgresql.org>
  References: <E1ijmbI-0002H9-Cw@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