forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6260cc5
committed
pgbench: add \cset and \gset commands
These commands allow assignment of values produced by queries to pgbenchvariables, where they can be used by further commands. \gset terminatesa command sequence (just like a bare semicolon); \cset separatesmultiple queries in a compound command, like an escaped semicolon (\;).A prefix can be provided to the \-command and is prepended to the nameof each output column to produce the final variable name.This feature allows pgbench scripts to react meaningfully to the actualdatabase contents, allowing more powerful benchmarks to be written.Authors: Fabien Coelho, Álvaro HerreraReviewed-by: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>Reviewed-by: Stephen Frost <sfrost@snowman.net>Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com>Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Reviewed-by: Tatsuo Ishii <ishii@sraoss.co.jp>Reviewed-by: Rafia Sabih <rafia.sabih@enterprisedb.com>Discussion:https://postgr.es/m/alpine.DEB.2.20.1607091005330.3412@sto1 parente1c1d54 commit6260cc5
File tree
6 files changed
+602
-137
lines changed- doc/src/sgml/ref
- src
- bin/pgbench
- t
- fe_utils
- include/fe_utils
6 files changed
+602
-137
lines changedLines changed: 85 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
954 | 954 |
| |
955 | 955 |
| |
956 | 956 |
| |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
957 | 1042 |
| |
958 | 1043 |
| |
959 | 1044 |
| |
|
0 commit comments
Comments
(0)