You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -64,9 +64,10 @@ Done! Now it's time to setup your partitioning schemes.
64
64
```plpgsql
65
65
create_hash_partitions(relation REGCLASS,
66
66
attributeTEXT,
67
-
partitions_countINTEGER)
67
+
partitions_countINTEGER,
68
+
partition_nameTEXT DEFAULTNULL)
68
69
```
69
-
Performs HASH partitioning for`relation` by integer key`attribute`.Creates`partitions_count` partitionsand trigger on INSERT. Allthe data will be automatically copied from the parent to partitions.
70
+
Performs HASH partitioning for`relation` by integer key`attribute`.The`partitions_count`parameter specifies the number ofpartitionsto create; it cannot be changed afterwards. If`partition_data` is`true` then allthe data will be automatically copied from the parenttableto partitions. Note that data migration may took a while to finish and the table will be locked until transaction commits. See`partition_data_concurrent()` for a lock-free way to migrate data.
Performs RANGE partitioning for`relation` by partitioning key`attribute`.`start_value` argument specifies initial value,`interval` sets the range of values in a single partition,`count` is the number of premade partitions (if not set then pathman tries to determine it based on attribute values). If`partition_data` is`true` then all the data will be automatically copied from the parent table to partitions. Note that data migration may took a while to finish and the table will be locked until transaction commits. See`partition_data_concurrent()` for a lock-free way to migrate data.
87
+
Performs RANGE partitioning for`relation` by partitioning key`attribute`.`start_value` argument specifies initial value,`interval` sets the range of values in a single partition,`count` is the number of premade partitions (if not set then pathman tries to determine it based on attribute values).
87
88
88
89
```plpgsql
89
90
create_partitions_from_range(relation REGCLASS,
@@ -123,7 +124,7 @@ Same as above, but for a RANGE-partitioned table.