diff options
author | Michael Paquier <michael@paquier.xyz> | 2020-04-03 11:45:15 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2020-04-03 11:45:15 +0900 |
commit | 9d8ef98800bd291de145fb1be41f0868546e02ab (patch) | |
tree | 4862d78e2ae452c690f2bf4ccbe74a4bf547677f /src/backend/commands/constraint.c | |
parent | ed7a5095716ee498ecc406e1b8d5ab92c7662d10 (diff) | |
download | postgresql-9d8ef98800bd291de145fb1be41f0868546e02ab.tar.gz postgresql-9d8ef98800bd291de145fb1be41f0868546e02ab.zip |
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
Diffstat (limited to 'src/backend/commands/constraint.c')
0 files changed, 0 insertions, 0 deletions