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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 6eb71ac) | patch
Have \copy go through SendQuery
2012年1月25日 21:06:00 +0000 (18:06 -0300)
2012年1月25日 21:22:00 +0000 (18:22 -0300)
commit 08146775acd8bfe0fcc509c71857abb928697171
Have \copy go through SendQuery

This enables a bunch of features, notably ON_ERROR_ROLLBACK. It also
makes COPY failure (either in the server or psql) as a whole behave more
sanely in psql.

Additionally, having more commands in the same command line as COPY
works better (though since psql splits lines at semicolons, this doesn't
matter much unless you're using -c).

Also tighten a couple of switches on PQresultStatus() to add
PGRES_COPY_BOTH support and stop assuming that unknown statuses received
are errors; have those print diagnostics where warranted.

Author: Noah Misch
src/bin/psql/command.c diff | blob | blame | history
src/bin/psql/common.c diff | blob | blame | history
src/bin/psql/copy.c diff | blob | blame | history
src/test/regress/expected/copyselect.out diff | blob | blame | history
src/test/regress/sql/copyselect.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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