Postgres 10 - Attach-Detach Partition in Declarative vs Inheritance

Поиск
Список
Период
Сортировка
От Gaurav Anand
Тема Postgres 10 - Attach-Detach Partition in Declarative vs Inheritance
Дата
Msg-id CAMZ99nfFRPxwoQfH676z1+Xtpm_Q778Yew+DkCOkYyjDsW_zyg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Postgres 10 - Attach-Detach Partition in Declarative vs Inheritance  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список pgsql-admin
Hi Team,

I need your kind recommendation
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 the 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

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

 

В списке pgsql-admin по дате отправления:

Предыдущее
От: Kenny Bachman
Дата:
Сообщение: Re: postgresql memory problem
Следующее
От: Thomas Kaliakos
Дата:
Сообщение: Programmatic access to the SQL tab of pgadmin