| From: | "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com> |
|---|---|
| To: | 'vignesh C' <vignesh21(at)gmail(dot)com>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
| Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | RE: Preserve conflict log table during upgrade |
| Date: | 2026-11-30 05:05:22 |
| Message-ID: | OS7PR01MB18317D4778448CA0BE8AE2B2CF54E2@OS7PR01MB18317.jpnprd01.prod.outlook.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
Thanks for updating the patch. Comments for v2.
01.
Missing update for the commit message, it still implies conflict log table can be
dumped when it's specified.
02.
pg_dump --binary-upgrade --no-subscription still dumps only the CLT. This breaks
the policy with 02decf9a9a.
03.
```
+# A comment on the table and on a column must survive the upgrade too.
+my $sub_clt_col = $old_sub->safe_psql('postgres',
+ "SELECT attname FROM pg_attribute WHERE attrelid = $sub_clt_relid AND attnum = 1"
+);
+$old_sub->safe_psql(
+ 'postgres', qq[
+ COMMENT ON TABLE pg_conflict.$sub_clt_name IS 'clt table comment';
+ COMMENT ON COLUMN pg_conflict.$sub_clt_name.$sub_clt_col IS 'clt column comment';
+]);
```
IIUC, there are no special handlings for comments of table/column. I feel either
of them is enough to test here.
Best regards,
Hayato Kuroda
FUJITSU LIMITED
| From | Date | Subject | |
|---|---|---|---|
| Next Message | shihao zhong | 2026-11-30 05:07:50 | Re: Assertion failure in get_matching_part_pairs() with pruned partitions |
| Previous Message | Amit Kapila | 2026-11-30 05:04:15 | Re: update_deleted lookup assumes heap tuple slots |