Skip to content

Autovacuum after large update, with active RUM index crashes postgres  #19

Closed
@poppingtonic

Description

@poppingtonic

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.

screenshot from 2017-05-30 10-41-09

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions