Add support for primary key, foreign key, unique key, indexes and triggers on partitioned tables for PG/EPAS 11. Fixes #3412

This commit is contained in:
Khushboo Vashi
2018-07-27 17:31:21 +05:30
committed by Akshay Joshi
parent 0138dee989
commit 0cb25bde63
14 changed files with 200 additions and 49 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 KiB

View File

@@ -13,6 +13,7 @@ Features
| `Feature #2214 <https://redmine.postgresql.org/issues/2214>`_ - Add support for SCRAM password changes (requires psycopg2 >= 2.8).
| `Feature #3074 <https://redmine.postgresql.org/issues/3074>`_ - Add support for reset saved password.
| `Feature #3397 <https://redmine.postgresql.org/issues/3397>`_ - Add support for Trigger and JIT stats in the graphical query plan viewer.
| `Feature #3412 <https://redmine.postgresql.org/issues/3412>`_ - Add support for primary key, foreign key, unique key, indexes and triggers on partitioned tables for PG/EPAS 11.
| `Feature #3506 <https://redmine.postgresql.org/issues/3506>`_ - Allow the user to specify a fixed port number in the runtime to aid cookie whitelisting etc.
| `Feature #3510 <https://redmine.postgresql.org/issues/3510>`_ - Add a menu option to the runtime to copy the appserver URL to the clipboard.

View File

@@ -256,6 +256,31 @@ Use the fields in the **Like** box to specify which attributes of an existing ta
* Move the *With storage?* switch to the *Yes* position to copy storage settings.
* Move the *With comments?* switch to the *Yes* position to copy comments.
With PostgreSQL 10 forward, the *Partition* tab will be visible.
Click the *Partition* tab to continue.
.. image:: images/table_partition.png
:alt: Table dialog partition tab
Use the fields in the *partition* tab to create the partitions for the table:
* Select a partition type from the *Partition Type* selection box. There are 3 options available; Range, List and Hash. Hash option will only enable for PostgreSQL version >= 11.
Use the *Partition Keys* panel to define the partition keys. Click the *Add* icon (+) to add each partition keys selection:
* Select a partition key type in the *Keytype* field.
* Select a partition column in the *Column* field if Column option selected for *Keytype* field .
* Specify the expression in the *Expression* field if Expression option selected for the *Keytype* field.
Use the *Partitions* panel to define the partitions of a table. Click the *Add* icon (+) to add each partition:
* Move the *Operation* switch to *attach* to attach the partition, by default it is *create*.
* Use the *Name* field to add the name of the partition.
* If partition type is Range then *From* and *To* fields will be enabled.
* If partition type is List then *In* field will be enabled.
* If partition type is Hash then *Modulus* and *Remainder* fields will be enabled.
Click the *Parameter* tab to continue.
.. image:: images/table_parameter.png