Lock contention issues with repack - Mailing list pgsql-general

From Durgamahesh Manne
Subject Lock contention issues with repack
Date
Msg-id CAJCZkoKRi1NLZd6gKX_NYsNQx5JyfTLMaaxSo8fiXZenKkK_=w@mail.gmail.com
Whole thread Raw
List pgsql-general
Hi 

DEBUG: Poll returned: 1

LOG: Command finished in worker 1: CREATE UNIQUE INDEX index_3199790649 ON repack.table_5832724 USING btree (id)
DEBUG: ---- swap ----
DEBUG: query failed: ERROR: canceling statement due to statement timeout
DETAIL: query was: LOCK TABLE offer.market IN ACCESS EXCLUSIVE MODE
DEBUG: query failed: ERROR: canceling statement due to statement timeout
DETAIL: query was: LOCK TABLE offer.market IN ACCESS EXCLUSIVE MODE

While running pg_repack i was facing this issue as concurrent selects and updates on tables being repacked .However raised the same to pg_repack channel . No issues with low traffic on db 
How to resolve this issue even on moderate db workload ?



pgsql-general by date:

Previous
From: Dominique Devienne
Date:
Subject: Re: Regression in Postgres 17?
Next
From: Greg Sabino Mullane
Date:
Subject: Re: Query performance issue