Re: index unique - Mailing list pgsql-general

From Peter J. Holzer
Subject Re: index unique
Date
Msg-id 20210612232426.GA28500@hjp.at
Whole thread Raw
In response to Re: index unique  (Marc Millas <marc.millas@mokadb.com>)
List pgsql-general
On 2021-06-11 14:37:57 +0200, Marc Millas wrote:
> anyway, my original post was about the fact that we must create a PK based on
> some kind of work around the limited btree length behaviour thus creating an
> index that will never be of any use, just for technical reasons.

Actually, that index will be used, and it will be used every time you
update, insert, or delete a row - by the logical replication system
which has to identify the affected row(s) on the secondary system.

        hp

--
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachment

pgsql-general by date:

Previous
From: Vijaykumar Jain
Date:
Subject: Re: How to generate file from postgres data
Next
From: Avi Weinberg
Date:
Subject: Notify When Streaming Replication Failover Occurred (slave promoted to master).