From: Gaurav Anand <gaurav.anand@saama.com>
To: pgsql-admin@postgresql.org, pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: PG10 Attach-Detach Partition in Declarative vs Inheritance
Date: Mon, 14 Feb 2022 11:24:17 +0530
Message-ID: <CAMZ99ncALOUj4_MrdLP0OC89Ndjdo+CzNB3gFVHC9EEpKXhj7A@mail.gmail.com> (raw)
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
[image: logo] <https://bit.ly/3nJh91F;
--
This communication is confidential and
subject to and governed by Saama’s
Electronic
Communications Disclaimer.
<https://www.saama.com/email-communication-disclaimer/;
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: gaurav.anand@saama.com, pgsql-admin@lists.postgresql.org
Subject: Re: PG10 Attach-Detach Partition in Declarative vs Inheritance
In-Reply-To: <CAMZ99ncALOUj4_MrdLP0OC89Ndjdo+CzNB3gFVHC9EEpKXhj7A@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox