aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gin/ginutil.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2016-09-26 10:56:02 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2016-09-26 10:56:02 +0300
commit12788ae49e1933f463bc59a6efe46c4a01701b76 (patch)
tree092eb058952329471a9d911ff474441e151033b4 /src/backend/access/gin/ginutil.c
parentda6c4f6ca88df346573bdada2aa2544510bf167e (diff)
downloadpostgresql-12788ae49e1933f463bc59a6efe46c4a01701b76.tar.gz
postgresql-12788ae49e1933f463bc59a6efe46c4a01701b76.zip
Refactor script execution state machine in pgbench.
The doCustom() function had grown into quite a mess. Rewrite it, in a more explicit state machine style, for readability. This also fixes one minor bug: if a script consisted entirely of meta commands, doCustom() never returned to the caller, so progress reports with the -P option were not printed. I don't want to backpatch this refactoring, and the bug is quite insignificant, so only commit this to master, and leave the bug unfixed in back-branches. Review and original bug report by Fabien Coelho. Discussion: <alpine.DEB.2.20.1607090850120.3412@sto>
Diffstat (limited to 'src/backend/access/gin/ginutil.c')
0 files changed, 0 insertions, 0 deletions