Re: Not able to purge partition

Поиск
Список
Период
Сортировка
От veem v
Тема Re: Not able to purge partition
Дата
Msg-id CAB+=1TW+bnifVFMtC4u5Ok2sjyse54iDK242v47txf4gotU7nw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Not able to purge partition  (Laurenz Albe <laurenz.albe@cybertec.at>)
Ответы Re: Not able to purge partition
Re: Not able to purge partition
Список pgsql-general
On Thu, 21 Mar 2024 at 23:39, Laurenz Albe <laurenz.albe@cybertec.at> wrote:
On Thu, 2024-03-21 at 22:50 +0530, veem v wrote:
> So when you mentioned "to create the foreign keys *not* between the
> partitioned table but between the individual partitions" , can that
> be done using the same "partman.create_parent" procedure and automated
> cron job schedule or has to be done any other way manually ?

I don't know the capabilities of partmen, but I would be surprised if
it could automatically create foreign keys on the partitions.


Yes, the constraints on each of the child partitions and parent partitions were getting created automatically. As I see from information_schema.table_constraints, it shows one foreign key constraint in each of the child partitions created through the partman procedure. 

It works smoothly without any issue, until we noticed this issue while trying to purge the partition from the parent table partition. But I believe this extension is extensively used , so I'm just wondering if I am missing something here with regards to foreign key creation using this automated partition creation/partman extension functionality.


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

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: Not able to purge partition
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: pg_dumpall with flag --no-role-passwords omits roles comments as well