Closed
Description
table with 160k records
UPDATE {table_name} SET {document}=data.{document} FROM
(VALUES %s) AS data ({document}, id)
WHERE {table_name}.id=data.id;
UPDATE {table_name} set {document_vector}=(select to_tsvector({document}));
CREATE INDEX {table_name}_rum_index
ON {table_name} USING RUM ({document_vector} rum_tsvector_ops);
After this set of queries, the autovacuum consumes all available memory before it crashes.
Activity
za-arthur commentedon May 30, 2017
Thank you for the issue! Will check.
za-arthur commentedon May 30, 2017
Can you provide a backtrace please?
za-arthur commentedon May 31, 2017
I reproduced it. Work on it.
poppingtonic commentedon May 31, 2017
I took too long to get a backtrace, since my machine would lock up. Glad you reproduced it.
Issue #19. Bug in vacuuming.
za-arthur commentedon Jun 1, 2017
I fixed the bug. Can you check it?
Test for Issue #19
poppingtonic commentedon Jun 1, 2017
Nice work! I ran it while watching htop, and autovacuum topped out at 5% memory right before it stopped.
za-arthur commentedon Jun 1, 2017
Great!
Issue #19. Fix README.md. In that old README ts_rank() was used.