Re: Identity/Serial Column In Subscriber's Tables

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Identity/Serial Column In Subscriber's Tables
Дата
Msg-id cc713b430c157f49869f0d94b57126479bdf63ca.camel@cybertec.at
обсуждение исходный текст
Ответ на Identity/Serial Column In Subscriber's Tables  (Avi Weinberg <AviW@gilat.com>)
Ответы RE: Identity/Serial Column In Subscriber's Tables  (Avi Weinberg <AviW@gilat.com>)
Список pgsql-general
On Thu, 2021-12-09 at 09:13 +0000, Avi Weinberg wrote:
> What is the best practice when dealing with Identity/Serial column in logical replication.
> Should the subscriber table have this column also defined as Identity/Serial or have it defined as regular integer?
> Is leaving it as Identity/Serial also on subscriber tables, can potentially cause a problem?

It does not really matter if you use "serial" or an identity column on
the logical standby or not.  The sequence on the standby won't be advanced.

The best way to prevent conflicts from happening is *not* to modify
the data on the standby.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




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

Предыдущее
От: Marc Millas
Дата:
Сообщение: Re: performance expectations for table(s) with 2B recs
Следующее
От: Willy Skjæveland
Дата:
Сообщение: help