Re: Dropped and generated columns might cause wrong data on subs when REPLICA IDENTITY FULL
Önder Kalacı <onderkalaci@gmail.com>
From: Önder Kalacı <onderkalaci@gmail.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: "shiy.fnst@fujitsu.com" <shiy.fnst@fujitsu.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-03-17T07:38:02Z
Lists: pgsql-hackers
Attachments
- v2-0001-Ignore-dropped-columns-REL_12-REL_11.patch (application/octet-stream) patch v2-0001
- v2-0001-Ignore-dropped-columns-HEAD-REL_15-REL_14-REL_13.patch (application/octet-stream) patch v2-0001
- v2-0001-Ignore-generated-columns.patch (application/octet-stream) patch v2-0001
Hi Amit, all > You can first submit the fix for dropped columns with patches till > v10. Once that is committed, then you can send the patches for > generated columns. > > Alright, attaching 2 patches for dropped columns, the names of the files shows which versions the patch can be applied to: v2-0001-Ignore-dropped-columns-HEAD-REL_15-REL_14-REL_13.patch v2-0001-Ignore-dropped-columns-REL_12-REL_11.patch And, then on top of that, you can apply the patch for generated columns on all applicable versions (HEAD, 15, 14, 13 and 12). It applies cleanly. The name of the file is: v2-0001-Ignore-generated-columns.patch But unfortunately I couldn't test the patch with PG 12 and below. I'm getting some unrelated compile errors and Postgrees CI is not available on these versions . I'll try to fix that, but I thought it would still be good to share the patches as you might already have the environment to run the tests. Don't worry about v10 --- that's out of support and shouldn't > get patched for this. Given this information, I skipped the v10 patch. Thanks, Onder KALACI
Commits
-
Ignore generated columns during apply of update/delete.
- adedf54e659e 16.0 landed
- b6bf90edcd2f 15.3 landed
- 9dac02c77258 14.8 landed
- be52fff91dc9 13.11 landed
- 0f2d4adbf85f 12.15 landed
-
Ignore dropped columns during apply of update/delete.
- b797def5951f 16.0 landed
- 3c12407f4cf7 15.3 landed
- 65ead76961a4 14.8 landed
- 751d6676daf3 13.11 landed
- fc63e6ba8670 12.15 landed
- 4cdaea7a2119 11.20 landed