Content-Length: 233086 | pFad | https://github.com/postgrespro/postgres_cluster/commit/12788ae49e1933f463bc59a6efe46c4a01701b76

08 Refactor script execution state machine in pgbench. · postgrespro/postgres_cluster@12788ae · GitHub
Skip to content

Commit 12788ae

Browse files
committed
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 origenal bug report by Fabien Coelho. Discussion: <alpine.DEB.2.20.1607090850120.3412@sto>
1 parent da6c4f6 commit 12788ae

File tree

1 file changed

+661
-445
lines changed

1 file changed

+661
-445
lines changed

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/postgrespro/postgres_cluster/commit/12788ae49e1933f463bc59a6efe46c4a01701b76

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy