Skip to content

Lock issue with 1.5.1 on partitioned table repack #435

@ankitml

Description

@ankitml

I am repacking a child partition of a partitioned table. It fails during swap after the indexes are created. I have not been able to successfully run a repack on 1.5.1, while on 1.5.0 it is succeeding.

{"levelname": "INFO", "message": "[repack.py] LOG: Initial worker 1 to build index: CREATE INDEX index_399285097 ON repack.table_399285089 USING gin (a, b, available_at, c)", "asctime": "2024-12-12 18:14:51,165"}
{"levelname": "INFO", "message": "[repack.py] LOG: Command finished in worker 1: CREATE UNIQUE INDEX index_399285097 ON repack.table_399285089 USING gin (a, b, available_at, c)", "asctime": "2024-12-12 18:14:51,165"}
{"levelname": "INFO", "message": "[repack.py] ERROR: query failed: ERROR:  must hold access exclusive lock on table \"table_399285089\"", "asctime": "2024-12-12 18:14:51,165"}
{"levelname": "INFO", "message": "[repack.py] DETAIL: query was: SELECT repack.repack_swap($1)", "asctime": "2024-12-12 18:14:51,165"}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions