mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
PQerrorMessage() returns an error message with a trailing newline, but in backend use (dblink, postgres_fdw, libpqwalreceiver), we want to have the error message without that for emitting via ereport(). To simplify that, add a function pchomp() that returns a pstrdup'ed string with the trailing newline characters removed. |
||
|---|---|---|
| .. | ||
| expected | ||
| input | ||
| output | ||
| sql | ||
| .gitignore | ||
| dblink--1.0--1.1.sql | ||
| dblink--1.1--1.2.sql | ||
| dblink--1.2.sql | ||
| dblink--unpackaged--1.0.sql | ||
| dblink.c | ||
| dblink.control | ||
| dblink.h | ||
| Makefile | ||
| pg_service.conf | ||