git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 9fab40a) | patch
chomp PQerrorMessage() in backend uses
2017年2月27日 13:30:06 +0000 (08:30 -0500)
2017年2月27日 13:54:51 +0000 (08:54 -0500)
commit 2ed193c904679a533d5e26a27c97119793bcae52
chomp PQerrorMessage() in backend uses

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.
contrib/dblink/dblink.c diff | blob | blame | history
contrib/dblink/expected/dblink.out diff | blob | blame | history
contrib/postgres_fdw/connection.c diff | blob | blame | history
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c diff | blob | blame | history
src/backend/utils/mmgr/mcxt.c diff | blob | blame | history
src/include/utils/palloc.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /