@@ -70,6 +70,7 @@ More interesting features are yet to come. Stay tuned!
70
70
* Non-blocking[ concurrent table partitioning] ( #data-migration ) ;
71
71
* FDW support (foreign partitions);
72
72
* Various[ GUC] ( #disabling-pg_pathman ) toggles and configurable settings.
73
+ * Partial support of[ ` declarative partitioning ` ] ( #declarative-partitioning ) (from PostgreSQL 10).
73
74
74
75
##Installation guide
75
76
To install` pg_pathman ` , execute this in the module's directory:
@@ -410,6 +411,26 @@ AS SELECT * FROM @extschema@.show_cache_stats();
410
411
```
411
412
Shows memory consumption of various caches.
412
413
414
+ ##Declarative partitioning
415
+
416
+ From PostgreSQL 10` ATTACH PARTITION ` ,` DETACH PARTITION `
417
+ and` CREATE TABLE .. PARTITION OF ` commands could be with with tables
418
+ partitioned by` pg_pathman ` :
419
+
420
+ ``` plpgsql
421
+ CREATE TABLE child1 (LIKE partitioned_table);
422
+
423
+ -- - attach new partition
424
+ ALTER TABLE partitioned_table ATTACH PARTITION child1
425
+ FORVALUES FROM (' 2015-05-01' ) TO (' 2015-06-01' );
426
+
427
+ -- - detach the partition
428
+ ALTER TABLE partitioned_table DETACH PARTITION child1;
429
+
430
+ -- create a partition
431
+ CREATE TABLE child2 PARTITION OF partitioned_table
432
+ FORVALUES IN (' 2015-05-01' ,' 2015-06-01' );
433
+ ```
413
434
414
435
##Custom plan nodes
415
436
` pg_pathman ` provides a couple of[ custom plan nodes] ( https://wiki.postgresql.org/wiki/CustomScanAPI ) which aim to reduce execution time, namely: