Closed saygoodbyye closed 1 year ago
If pg_hint_plan.parse_messages level is set to ERROR, the setup_guc_enforcement() function breaks immediately when the SET hint has an error. In this case, the pop_hint() function is not called.
Thanks for the report and the patch! Will look into it!
I had the same problem with PG11
The issue is now fixed. I have reworked at bit the code around push/pop so as we handle the stack consistently now.
I have got a server crash when executing the following script:
Server configuration:
I have used this branches: postgres - master pg_hint_plan - master
Also I've reproduced this crash on branches: postgres - REL_15_STABLE pg_hint_plan - PG15
Here is the backtrace:
Best regards, Egor Chindyaskin Postgres Professional: http://postgrespro.com/