Hi,
> Some details from postmaster.log:
> ==2296443== Conditional jump or move depends on uninitialised value(s)
> ==2296443== at 0x434D3E6: cost_material (costsize.c:2593)
> ==2296443== by 0x436E869: materialize_finished_plan (createplan.c:6531)
> [...]
> **2296443** Valgrind detected 1 error(s) during execution of "explain
> (costs off) declare c1 scroll cursor for select (select 42) as x;"
> **2296443** Valgrind detected 1 error(s) during execution of "declare
> c1 scroll cursor for select (select 42) as x;"
>
> So it looks like this is missing some initialization, causing valgrind
> to complain.
I tested an alternative solution based on memset() and it makes
Valgrind happy (tested on Linux x64), while all the tests pass.
--
Best regards,
Aleksander Alekseev