doc: update pg requirements for partitioning

Fixes: https://pagure.io/koji/issue/1938
This commit is contained in:
Tomas Kopecek 2020-09-28 13:54:31 +02:00
parent 5e8ed0c166
commit 620888a089

View file

@ -22,6 +22,11 @@ almost always query by ``buildroot_id``.
It has three steps - first is to backup your db and turn hub offline.
.. note::
SQL syntax used here (PARTITION BY) is in Postgres from version 10. Same
behaviour can be made to work even with older releases but needs a bit of
additional code to replace it.
Second is creating trigger, which will be used when new buildroot is
created and will ensure that potential new partition is created:
@ -60,7 +65,7 @@ created and will ensure that potential new partition is created:
FOR EACH ROW EXECUTE PROCEDURE create_partition_and_insert();
The second one is one-time code, which will be used for converting
The third one is one-time code, which will be used for converting
existing tables.
.. code-block:: plpgsql