Avoid extra newline in errors received in FE protocol version 2.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/libpq/fe-connect.c | modified | +8 −3 |
Discussion
- Removing support for COPY FROM STDIN in protocol version 2 22 messages · 2021-02-03 → 2021-03-04