@@ -260,7 +260,7 @@ Indexes:
260260 "idxpart1_a_idx" btree (a)
261261
262262\d idxpart2
263- Table "public.idxpart2"
263+ Partitioned table "public.idxpart2"
264264 Column | Type | Collation | Nullable | Default
265265--------+---------+-----------+----------+---------
266266 a | integer | | |
@@ -305,7 +305,7 @@ where indexrelid::regclass::text like 'idxpart%'
305305-- attaching idxpart22 is not enough to set idxpart22_a_idx valid ...
306306alter index idxpart2_a_idx attach partition idxpart22_a_idx;
307307\d idxpart2
308- Table "public.idxpart2"
308+ Partitioned table "public.idxpart2"
309309 Column | Type | Collation | Nullable | Default
310310--------+---------+-----------+----------+---------
311311 a | integer | | |
@@ -319,7 +319,7 @@ Number of partitions: 2 (Use \d+ to list them.)
319319create index on idxpart21 (a);
320320alter index idxpart2_a_idx attach partition idxpart21_a_idx;
321321\d idxpart2
322- Table "public.idxpart2"
322+ Partitioned table "public.idxpart2"
323323 Column | Type | Collation | Nullable | Default
324324--------+---------+-----------+----------+---------
325325 a | integer | | |
@@ -728,7 +728,7 @@ create table idxpart (col_keep int) partition by range (col_keep);
728728create index on idxpart (col_keep);
729729alter table idxpart attach partition idxpart1 for values from (0) to (1000);
730730\d idxpart
731- Table "public.idxpart"
731+ Partitioned table "public.idxpart"
732732 Column | Type | Collation | Nullable | Default
733733----------+---------+-----------+----------+---------
734734 col_keep | integer | | |
@@ -771,7 +771,7 @@ create index on idxpart1 (col_keep);
771771create index on idxpart (col_keep);
772772alter table idxpart attach partition idxpart1 for values from (0) to (1000);
773773\d idxpart
774- Table "public.idxpart"
774+ Partitioned table "public.idxpart"
775775 Column | Type | Collation | Nullable | Default
776776----------+---------+-----------+----------+---------
777777 col_keep | integer | | |
@@ -810,7 +810,7 @@ drop table idxpart;
810810-- Verify that it works to add primary key / unique to partitioned tables
811811create table idxpart (a int primary key, b int) partition by range (a);
812812\d idxpart
813- Table "public.idxpart"
813+ Partitioned table "public.idxpart"
814814 Column | Type | Collation | Nullable | Default
815815--------+---------+-----------+----------+---------
816816 a | integer | | not null |
@@ -872,7 +872,7 @@ ERROR: insufficient columns in PRIMARY KEY constraint definition
872872DETAIL: PRIMARY KEY constraint on table "idxpart" lacks column "b" which is part of the partition key.
873873alter table idxpart add primary key (a, b); -- this works
874874\d idxpart
875- Table "public.idxpart"
875+ Partitioned table "public.idxpart"
876876 Column | Type | Collation | Nullable | Default
877877--------+---------+-----------+----------+---------
878878 a | integer | | not null |
@@ -903,7 +903,7 @@ ERROR: insufficient columns in UNIQUE constraint definition
903903DETAIL: UNIQUE constraint on table "idxpart" lacks column "b" which is part of the partition key.
904904alter table idxpart add unique (b, a); -- this works
905905\d idxpart
906- Table "public.idxpart"
906+ Partitioned table "public.idxpart"
907907 Column | Type | Collation | Nullable | Default
908908--------+---------+-----------+----------+---------
909909 a | integer | | |
0 commit comments