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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: ed7a509) | patch
Add support for \aset in pgbench
Fri, 3 Apr 2020 02:45:15 +0000 (11:45 +0900)
Fri, 3 Apr 2020 02:45:15 +0000 (11:45 +0900)
commit 9d8ef98800bd291de145fb1be41f0868546e02ab
Add support for \aset in pgbench

This option is similar to \gset, except that it is able to store all
results from combined SQL queries into separate variables. If a query
returns multiple rows, the last result is stored and if a query returns
no rows, nothing is stored.

While on it, add a TAP test for \gset to check for a failure when a
query returns multiple rows.

Author: Fabien Coelho
Reviewed-by: Ibrar Ahmed, Michael Paquier
Discussion: https://postgr.es/m/alpine.DEB.2.21.1904081914200.2529@lancre
doc/src/sgml/ref/pgbench.sgml 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
This is the main PostgreSQL git repository.
RSS Atom

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