pg_repack and locks - Mailing list pgsql-general

From nicolas
Subject pg_repack and locks
Date
Msg-id 1726378815.4209727.1736772006968@mail.yahoo.com
Whole thread Raw
Responses Re: pg_repack and locks
List pgsql-general
Hello everyone,

We are using postgresql v12 and added the pg_repack package

Since I cannot stop other process, I use the “--no-kill-backend” and Pg_repack will wait indefinitly until pg_repack
getthe lock 

I get sometimes a problem of lock:

sometimes, I get indefinitly this message : “NOTICE: Waiting for 1 transactions to finish. First PID: xxxx”

this is a real problem because the database is usd all the time.
If I kill the process, a trigger on source table will still exist and  temporary tables and type still exists in the
repackschema. The tables are not empty if data has been modified in the source table during the repack. 

If I drop table repack tables, I will loose all data modifications done on source table
how can I properly cleanup the database ?

Hope this is clear and that somebody can help

best raegards,
Nicolas



pgsql-general by date:

Previous
From: Torsten Krah
Date:
Subject: Re: could not open file "base/XX/XX": Interrupted system call
Next
From: Rob Sargent
Date:
Subject: Re: Need help in logical replication