On Sunday, January 25, 2026, Chao Li <li.evan.chao@gmail.com> wrote:
> <para>
> When applied to a partitioned table, partition columns and constraints
> are implicitly renamed.
> Specifying <literal>ONLY</literal> is not allowed, and this command
> cannot be used on individual partitions.
> </para>
But for "Specifying <literal>ONLY</literal> is not allowed, and this command, cannot be used on individual partitions.”, that doesn’t seem correct. See my test:
```
evantest=# create table root (i int, j int) partition by list(i);
CREATE TABLE
evantest=# create table p1 partition of root for values in (1);
CREATE TABLE
evantest=# alter table p1 rename to pp1; <== Rename a partition is allowed.
ALTER TABLE
evantest=# alter table only pp1 rename to p1; <== ONLY can be used, but just no effect
ALTER TABLE
```