Commit add3442
authored
Add support for
By default when creating an index on a partitioned table,
it will also recurse and create indexes on all the underlying
partitions. This commit adds the option to only create the index
on the partioned table. Then the partitions can be indexed individually
and attached to the parent index.
I could not find support for this in MySQL or MSSQL. In Postgres it was
added in version 11.
See also https://www.postgresql.org/docs/11/sql-createindex.html
and best practices https://www.postgresql.org/docs/14/ddl-partitioning.html#DDL-PARTITIONING-DECLARATIVE-BEST-PRACTICESONLY in index creation (#451)1 parent 151780d commit add3442
3 files changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
925 | 925 | | |
926 | 926 | | |
927 | 927 | | |
| 928 | + | |
928 | 929 | | |
929 | 930 | | |
930 | 931 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| 369 | + | |
369 | 370 | | |
370 | 371 | | |
371 | 372 | | |
| |||
379 | 380 | | |
380 | 381 | | |
381 | 382 | | |
| 383 | + | |
382 | 384 | | |
383 | 385 | | |
384 | 386 | | |
| |||
720 | 722 | | |
721 | 723 | | |
722 | 724 | | |
| 725 | + | |
| 726 | + | |
723 | 727 | | |
724 | 728 | | |
725 | 729 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1828 | 1828 | | |
1829 | 1829 | | |
1830 | 1830 | | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
1831 | 1837 | | |
1832 | 1838 | | |
1833 | 1839 | | |
| |||
0 commit comments