Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

endless long test time under the valgrind.. #76

Open
dinama opened this issue Feb 7, 2020 · 0 comments
Open

endless long test time under the valgrind.. #76

dinama opened this issue Feb 7, 2020 · 0 comments

Comments

@dinama
Copy link

dinama commented Feb 7, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant