test_db=> SELECT count(*) FROM test_schema.old_nonpartitioned_table;
test_db=> SELECT count(*) FROM test_schema.original_table;
test_db=> \d+ test_schema.original_table
Partitioned table "test_schema.original_table"
Column | Type | Collation | Nullable | Default | Storage | Compression | Stats target | Description
col1 | bigint | | not null | | plain | | |
col2 | text | | not null | | extended | | |
col3 | timestamp with time zone | | | now() | plain | | |
col4 | text | | | | extended | | |
Partition key: RANGE (col1)
"original_table_col1_idx1" btree (col1)
Partitions: test_schema.original_table_p0 FOR VALUES FROM ('0') TO ('10000'),
test_schema.original_table_p10000 FOR VALUES FROM ('10000') TO ('20000'),
test_schema.original_table_p100000 FOR VALUES FROM ('100000') TO ('110000'),
test_schema.original_table_p20000 FOR VALUES FROM ('20000') TO ('30000'),
test_schema.original_table_p30000 FOR VALUES FROM ('30000') TO ('40000'),
test_schema.original_table_p40000 FOR VALUES FROM ('40000') TO ('50000'),
test_schema.original_table_p50000 FOR VALUES FROM ('50000') TO ('60000'),
test_schema.original_table_p60000 FOR VALUES FROM ('60000') TO ('70000'),
test_schema.original_table_p70000 FOR VALUES FROM ('70000') TO ('80000'),
test_schema.original_table_p80000 FOR VALUES FROM ('80000') TO ('90000'),
test_schema.original_table_p90000 FOR VALUES FROM ('90000') TO ('100000'),
test_schema.original_table_default DEFAULT
test_db=> SELECT count(*) FROM test_schema.original_table_p10000;