rum icon indicating copy to clipboard operation
rum copied to clipboard

endless long test time under the valgrind..

Open dinama opened this issue 5 years ago • 0 comments

git apply PostgresNode.patch.txt
echo 'exec valgrind postgres "$@"' > /tmp/pgvalgrind && chmod +x /tmp/pgvalgrind
PGLAUNCHER=/tmp/pgvalgrind make check -C contrib/rum

in command CREATE INDEX rumidx ON tst USING rum (t rum_tsvector_ops); will be endless working. because calling the function repalloc calls the macro VALGRIND_MEMPOOL_CHANGED which is very slooooow.

I suggest reducing the size of the generate_series to 10-20K or replace the repalloc call with palloc0 + memcpy

see: https://github.com/postgrespro/rum/blob/master/src/ruminsert.c#L208 see: https://github.com/postgres/postgres/blob/master/src/backend/utils/mmgr/mcxt.c#L1093

PostgresNode.patch.txt

dinama avatar Feb 07 '20 15:02 dinama