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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 7cd9765) | patch
Avoid redundantly prefixing PQerrorMessage for a connection failure.
2021年1月22日 21:52:31 +0000 (16:52 -0500)
2021年1月22日 21:52:31 +0000 (16:52 -0500)
commit 58cd8dca3de0b3c7d378a412eca1f7289b5e4978
Avoid redundantly prefixing PQerrorMessage for a connection failure.

libpq's error messages for connection failures pretty well stand on
their own, especially since commits 52a10224e/27a48e5a1. Prefixing
them with 'could not connect to database "foo"' or the like is just
redundant, and perhaps even misleading if the specific database name
isn't relevant to the failure. (When it is, we trust that the
backend's error message will include the DB name.) Indeed, psql
hasn't used any such prefix in a long time. So, make all our other
programs and documentation examples agree with psql's practice.

Discussion: https://postgr.es/m/1094524.1611266589@sss.pgh.pa.us
21 files changed:
contrib/oid2name/oid2name.c diff | blob | blame | history
contrib/vacuumlo/vacuumlo.c diff | blob | blame | history
doc/src/sgml/libpq.sgml diff | blob | blame | history
doc/src/sgml/lobj.sgml diff | blob | blame | history
src/bin/pg_dump/pg_backup_db.c diff | blob | blame | history
src/bin/pg_dump/pg_dumpall.c diff | blob | blame | history
src/bin/pg_dump/t/002_pg_dump.pl diff | blob | blame | history
src/bin/pg_upgrade/server.c diff | blob | blame | history
src/bin/pgbench/pgbench.c diff | blob | blame | history
src/bin/pgbench/t/001_pgbench_with_server.pl diff | blob | blame | history
src/bin/scripts/common.c diff | blob | blame | history
src/interfaces/ecpg/ecpglib/connect.c diff | blob | blame | history
src/interfaces/ecpg/test/expected/connect-test5.stderr diff | blob | blame | history
src/test/examples/testlibpq.c diff | blob | blame | history
src/test/examples/testlibpq2.c diff | blob | blame | history
src/test/examples/testlibpq3.c diff | blob | blame | history
src/test/examples/testlibpq4.c diff | blob | blame | history
src/test/examples/testlo.c diff | blob | blame | history
src/test/examples/testlo64.c diff | blob | blame | history
src/test/isolation/isolationtester.c diff | blob | blame | history
src/tools/findoidjoins/findoidjoins.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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