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

From: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
To: Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
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>, Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
Subject: Re: ALTER TABLE: warn when actions do not recurse to partitions
Date: 2026-04-01 08:03:48
Message-ID: 56126CD5-9B14-456C-AF70-DBB12A3E4CDB@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On Apr 1, 2026, at 16:01, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> wrote:
>
>
>
>> On Mar 13, 2026, at 11:16, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> wrote:
>>
>>
>>
>>> 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/
>>
>>
>>
>>
>> <v9-0001-ALTER-TABLE-emit-NOTICE-when-ONLY-is-omitted-but-.patch>
>
> PFA v10 - fixed a test failure.
>

Oops, forgot the attachment.

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

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2026-04-01 08:10:56 Re: WIP - xmlvalidate implementation from TODO list
Previous Message Nazir Bilal Yavuz 2026-04-01 08:02:48 Re: Beautify read stream "per buffer data" APIs