Re: Table partitioning with sequence field in postgresql12

Поиск
Список
Период
Сортировка
От amul sul
Тема Re: Table partitioning with sequence field in postgresql12
Дата
Msg-id CAAJ_b96sP_SaNU1-NqHof_ZbgG-3tatWyiQ8YG8K7xyZ4FCajw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Table partitioning with sequence field in postgresql12  (Srinivasa T N <seenutn@gmail.com>)
Ответы Re: Table partitioning with sequence field in postgresql12  (Srinivasa T N <seenutn@gmail.com>)
Список pgsql-general
On Thu, Jun 18, 2020 at 12:22 PM Srinivasa T N <seenutn@gmail.com> wrote:
>
> Hi,
>    I have a parent table with one of the field as ""gid" int4 DEFAULT
nextval('"ami_smart_new".aoi_boundary_gid_seq'::regclass)".
>
>    I create child tables which inherit parent and use hash partition.  When I directly insert into child tables, will
therebe any race condition causing two child tables getting the same sequence value for gid?
 
>
if "gid" is the partitioning key and assuming you are using declarative
partitioning[1], then it won't be possible to have the same "gid" value in two
child partitions.

1] https://www.postgresql.org/docs/current/ddl-partitioning.html

regards,
Amul



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

Предыдущее
От: Tim Cross
Дата:
Сообщение: Re: Table partitioning with sequence field in postgresql12
Следующее
От: Srinivasa T N
Дата:
Сообщение: Re: Table partitioning with sequence field in postgresql12