Re: ALTER TABLE: warn when actions do not recurse to partitions

From: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
To: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
Cc: Greg Sabino Mullane <htamfids(at)gmail(dot)com>, Jim Jones <jim(dot)jones(at)uni-muenster(dot)de>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: ALTER TABLE: warn when actions do not recurse to partitions
Date: 2026-03-13 03:16:16
Message-ID: 8D28407D-A48B-42F4-88C9-A1EE182898F3@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On Mar 13, 2026, at 05:45, Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com> wrote:
>
> Hello
>
>> Affected sub-commands include:
>> ...
>
> Shouldn't SET ACCESS METHOD be included in this list?
>
> It only changes the catalog entry for the parent, existing partitions
> stay as-is. It only sets the access method for future direct child
> partitions.

Good catch. I missed SET ACCESS METHOD. Thanks a lot.

PFA v9:
* Included SET ACCESS METHOD
* Added a new test case where if the sub-command fails, then the notice message should not show up

Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/

Attachment Content-Type Size
v9-0001-ALTER-TABLE-emit-NOTICE-when-ONLY-is-omitted-but-.patch application/octet-stream 47.7 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Smith 2026-03-13 03:24:45 Re: Skipping schema changes in publication
Previous Message Fujii Masao 2026-03-13 02:57:13 Re: Change COPY ... ON_ERROR ignore to ON_ERROR ignore_row