Hello, I’ve found an issue with pgbench: it processes nested \if conditions incorrectly.
For example:
\if false
\if true
DROP TABLE money CASCADE;
\endif
\endif
In this case, the table will be dropped, which is unexpected behavior.
Attached is a fix that addresses this issue, along with a regression test.
Best regards,
Mikhail
v1-0001-pgbench-Fix-nested-if-elif-else-handling-in-scrip.patch
Description: Binary data
