Search Postgresql Archives

Re: Logical Replication - Different Primary Key on Source Table and Destination Table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 5, 2021 at 12:22 AM Avi Weinberg <AviW@xxxxxxxxx> wrote:

Is it permitted to have different primary key on source and destination tables?


Sure, but you are still going to want a unique index on the source table that includes the site ID to act as a replica identity.  Which of the two unique indexes is "primary" is largely immaterial.

David J.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux