]> granicus.if.org Git - postgresql/commit
Add regression test for ATTACH PARTITION
authorMichael Paquier <michael@paquier.xyz>
Sun, 7 Oct 2018 15:06:54 +0000 (00:06 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sun, 7 Oct 2018 15:06:54 +0000 (00:06 +0900)
commitafe9b9e68afb93b6831a939a7a18973ee5286d68
treee6c3f9076f6dacf305c5d4c880634848eda5d796
parent101b21ead356023c0b86d28dac3d6c08828c77b5
Add regression test for ATTACH PARTITION

This test case uses a SQL function as partitioning operator, whose
evaluation results in the table's relcache being rebuilt partway
through the execution of an ATTACH PARTITION command.

It is extracted from 39808e8, which fixed a bug where this test case
failed on master and REL_11_STABLE, but passed on REL_10_STABLE.  The
partitioning code has changed a lot during v11 development, so this
makes sure that any patch applied to REL_10_STABLE fixing a
partition-related bug does not break it again.

Author: Amit Langote
Reviewed-by: Michaël Paquier, Álvaro Herrera
Discussion: https://postgr.es/m/CAKcux6=nTz9KSfTr_6Z2mpzLJ_09JN-rK6=dWic6gGyTSWueyQ@mail.gmail.com
src/test/regress/expected/alter_table.out
src/test/regress/sql/alter_table.sql