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.