Re: Identity/Serial Column In Subscriber's Tables - Mailing list pgsql-general

From Laurenz Albe
Subject Re: Identity/Serial Column In Subscriber's Tables
Date
Msg-id cc713b430c157f49869f0d94b57126479bdf63ca.camel@cybertec.at
Whole thread Raw
In response to Identity/Serial Column In Subscriber's Tables  (Avi Weinberg <AviW@gilat.com>)
Responses RE: Identity/Serial Column In Subscriber's Tables  (Avi Weinberg <AviW@gilat.com>)
List 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 by date:

Previous
From: Marc Millas
Date:
Subject: Re: performance expectations for table(s) with 2B recs
Next
From: Willy Skjæveland
Date:
Subject: help