RE: Dropped and generated columns might cause wrong data on subs when REPLICA IDENTITY FULL
Yu Shi (Fujitsu) <shiy.fnst@fujitsu.com>
From: "shiy.fnst@fujitsu.com" <shiy.fnst@fujitsu.com>
To: Önder Kalacı <onderkalaci@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-03-20T07:18:22Z
Lists: pgsql-hackers
Attachments
- v4-pg12-0001-Ignore-dropped-columns-when-REPLICA-IDENTITY-FUL.patch (application/octet-stream) patch v4-0001
- v4-pg13-pg14-0001-Ignore-dropped-columns-when-REPLICA-IDENTITY-FUL.patch (application/octet-stream) patch v4-0001
- v4-pg15-0001-Ignore-dropped-columns-when-REPLICA-IDENTITY-FUL.patch (application/octet-stream) patch v4-0001
- v4-HEAD-0001-Ignore-dropped-columns-when-REPLICA-IDENTITY-FULL.patch (application/octet-stream) patch v4-0001
- v4-pg11-0001-Ignore-dropped-columns-when-REPLICA-IDENTITY-FUL.patch (application/octet-stream) patch v4-0001
On Fri, Mar 17, 2023 11:29 PM Önder Kalacı <onderkalaci@gmail.com> wrote: > > Thanks for sharing. Fixed > > > This time I was able to run all the tests with all the patches applied. > > Again, the generated column fix also has some minor differences > per version. So, overall we have 6 patches with very minor > differences :) Thanks for updating the patches. It seems you forgot to attach the patches of dropped columns for HEAD and pg15, I think they are the same as v2. On HEAD, we can re-use clusters in other test cases, which can save some time. (see fccaf259f22f4a) In the patches for pg12 and pg11, I am not sure why not add the test at end of the file 100_bugs.pl. I think it would be better to be consistent with other versions. The attached patches modify these two points. Besides, I made some minor changes, ran pgindent and pgperltidy. These are patches for dropped columns, because I think this would be submitted first, and we can discuss the fix for generated columns later. Regards, Shi Yu
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