pgsql: Avoid extra newline in errors received in FE protocol version 2.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Avoid extra newline in errors received in FE protocol version 2.
Date: 2021-03-04 08:59:16
Message-ID: E1lHjpE-0006So-Dr@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Avoid extra newline in errors received in FE protocol version 2.

Contrary to what the comment said, the postmaster does in fact end all
its messages in a newline, since server version 7.2. Be tidy and don't
add an extra newline if the error message already has one.

Discussion: https://www.postgresql.org/message-id/CAFBsxsEdgMXc%2BtGfEy9Y41i%3D5pMMjKeH8t8vSAypR3ZnAoQnHg%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/85d94c575302644e7ddb4392c3bda572f981ec34

Modified Files
--------------
src/interfaces/libpq/fe-connect.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2021-03-04 09:24:40 pgsql: Remove redundant getenv() for PGUSER, in psql help.
Previous Message Daniel Gustafsson 2021-03-04 08:32:23 Re: pgsql: pg_upgrade: Check version of target cluster binaries