Re: [BUG] pgbench nested \if conditions incorrectly processed

2024-12-15 Thread Tom Lane
Michail Nikolaev writes: > I’ve found an issue with pgbench: it processes nested \if conditions > incorrectly. Right you are. > Attached is a fix that addresses this issue, along with a regression test. Code fix looks good, but I don't agree with creating a separate test script for this --- tha

[BUG] pgbench nested \if conditions incorrectly processed

2024-12-15 Thread Michail Nikolaev
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, a