From: | Önder Kalacı <onderkalaci(at)gmail(dot)com> |
---|---|
To: | "shiy(dot)fnst(at)fujitsu(dot)com" <shiy(dot)fnst(at)fujitsu(dot)com> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
Subject: | Re: Dropped and generated columns might cause wrong data on subs when REPLICA IDENTITY FULL |
Date: | 2023-03-13 12:56:28 |
Message-ID: | CACawEhUCg-tRGzRqRq+qHaR+kPdZ=N1fP=A4_cCYd0LuNLUgnA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi Shi Yu,
> 1.
> @@ -243,6 +243,17 @@ tuples_equal(TupleTableSlot *slot1, TupleTableSlot
> *slot2,
> Form_pg_attribute att;
> TypeCacheEntry *typentry;
>
> +
> + Form_pg_attribute attr =
> TupleDescAttr(slot1->tts_tupleDescriptor, attrnum);
> +
>
> I think we can use "att" instead of a new variable. They have the same
> value.
>
ah, of course :)
>
> 2.
> +# The bug was that when when the REPLICA IDENTITY FULL is used with
> dropped
>
> There is an extra "when".
>
>
Fixed, thanks
Attaching v2
Attachment | Content-Type | Size |
---|---|---|
v2-0001-Skip-dropped-and-generated-columns-when-REPLICA-I.patch | application/x-patch | 4.2 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Dean Rasheed | 2023-03-13 13:00:37 | Re: Supporting MERGE on updatable views |
Previous Message | Önder Kalacı | 2023-03-13 12:43:54 | Re: [PATCH] Use indexes on the subscriber when REPLICA IDENTITY is full on the publisher |