Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:> The problem is unsaved plan - probably there should be big PG_TRY block.
Yeah, agreed. Done -- thanks for the report!
regards, tom lane