PG10 Attach-Detach Partition in Declarative vs Inheritance - Mailing list pgsql-admin

From Gaurav Anand
Subject PG10 Attach-Detach Partition in Declarative vs Inheritance
Date
Msg-id CAMZ99nek9HJahGt15str=An+G16foeo0cXL9cJEM8nBaP5Vcrw@mail.gmail.com
Whole thread Raw
In response to PG10 Attach-Detach Partition in Declarative vs Inheritance  (Gaurav Anand <gaurav.anand@saama.com>)
List pgsql-admin

Hi Team,

I need your kind suggestion:
We have Postgres 10 and have partition tables currently with Declarative partitions. When we refresh the data and detach and attach the partition, during this time our Application which has Sql query on these tables takes Lock and sometimes a deadlock situation also arises.
 
To overcome deadlock we used, advisory lock however the application still keeps waiting for lock to release.

Please suggest the best way - 
1. Will Inheritance partition (in PG10) help avoid the explicit locks.
2. Is upgrading the only choice? if so which version of PG.
3. Please suggest any other work around.

Thanks.

Regards,
Gaurav Anand

logo
--

Thanks.

Regards,
Gaurav Anand

logo

This communication is confidential and subject to and governed by Saama’s Electronic Communications Disclaimer.

 

pgsql-admin by date:

Previous
From: Gaurav Anand
Date:
Subject: PG10 Attach-Detach Partition in Declarative vs Inheritance
Next
From: Daulat
Date:
Subject: Object movement