pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: index unique
Date: Sun, 13 Jun 2021 01:24:26 +0200
Message-ID: <20210612232426.GA28500@hjp.at> (raw)
In-Reply-To: <CADX_1aYA-xJDR62pY8u=potG=A9iRVGHC1NsoB50D+Hbg+u0yw@mail.gmail.com>
References: <CADX_1aYbmMHK4wqHd=p_fGsNMOgEB7oe0BY_9ZTWv3e-TQx+oA@mail.gmail.com>
	<99cf7fa9-9788-c576-cb49-3aec780168f6@gmx.net>
	<5D617659-7B20-468C-9C40-51BFDD7D5767@gmail.com>
	<CADX_1aYA-xJDR62pY8u=potG=A9iRVGHC1NsoB50D+Hbg+u0yw@mail.gmail.com>

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!"

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (16+ messages)

Message-ID: <20210612232426.GA28500@hjp.at>
Permalink:  ../20210612232426.GA28500@hjp.at/
Also on:    postgresql.org/message-id/20210612232426.GA28500@hjp.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: hjp-pgsql@hjp.at
  Subject: Re: index unique
  In-Reply-To: <20210612232426.GA28500@hjp.at>
  References: <CADX_1aYbmMHK4wqHd=p_fGsNMOgEB7oe0BY_9ZTWv3e-TQx+oA@mail.gmail.com> <99cf7fa9-9788-c576-cb49-3aec780168f6@gmx.net> <5D617659-7B20-468C-9C40-51BFDD7D5767@gmail.com> <CADX_1aYA-xJDR62pY8u=potG=A9iRVGHC1NsoB50D+Hbg+u0yw@mail.gmail.com> <20210612232426.GA28500@hjp.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox