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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a9e9a9f) | patch
psql: Add command to use extended query protocol
2022年11月15日 12:50:27 +0000 (13:50 +0100)
2022年11月15日 13:27:46 +0000 (14:27 +0100)
commit 5b66de3433e2110b38a2b32aaaa0b9cdac8aacdb
psql: Add command to use extended query protocol

This adds a new psql command \bind that sets query parameters and
causes the next query to be sent using the extended query protocol.
Example:

SELECT 1,ドル 2ドル \bind 'foo' 'bar' \g

This may be useful for psql scripting, but one of the main purposes is
also to be able to test various aspects of the extended query protocol
from psql and to write tests more easily.

Reviewed-by: Corey Huinker <corey.huinker@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/e8dd1cd5-0e04-3598-0518-a605159fe314@enterprisedb.com
doc/src/sgml/ref/psql-ref.sgml diff | blob | blame | history
src/bin/psql/command.c diff | blob | blame | history
src/bin/psql/common.c diff | blob | blame | history
src/bin/psql/help.c diff | blob | blame | history
src/bin/psql/settings.h diff | blob | blame | history
src/bin/psql/tab-complete.c diff | blob | blame | history
src/test/regress/expected/psql.out diff | blob | blame | history
src/test/regress/sql/psql.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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