Re: Question about behavior of deletes with REPLICA IDENTITY NOTHING - Mailing list pgsql-hackers

From Laurenz Albe
Subject Re: Question about behavior of deletes with REPLICA IDENTITY NOTHING
Date
Msg-id 222e84b3f258d5487de5b5a0f1119e00b84071bc.camel@cybertec.at
Whole thread Raw
In response to Re: Question about behavior of deletes with REPLICA IDENTITY NOTHING  (Peter Smith <smithpb2250@gmail.com>)
Responses Re: Question about behavior of deletes with REPLICA IDENTITY NOTHING
Re: Question about behavior of deletes with REPLICA IDENTITY NOTHING
List pgsql-hackers
On Thu, 2024-02-08 at 13:40 +1100, Peter Smith wrote:
> -   how to set the replica identity.  If a table without a replica identity is
> +   how to set the replica identity.  If a table without a replica identity
> +   (or with replica identity behavior the same as <literal>NOTHING</literal>) is
>     added to a publication that replicates <command>UPDATE</command>
>     or <command>DELETE</command> operations then
>     subsequent <command>UPDATE</command> or <command>DELETE</command>

I had the impression that the root of the confusion was the perceived difference
between "REPLICA IDENTITY NOTHING" and "no replica identity", and that change
doesn't improve that.

How about:

  If a table without a replica identity (explicitly set to <literal>NOTHING</literal>,
  or set to a primary key or index that doesn't exist) is added ...


Yours,
Laurenz Albe



pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: Testing autovacuum wraparound (including failsafe)
Next
From: "Jonathan S. Katz"
Date:
Subject: Re: 2024-02-08 release announcement draft