aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2021-04-21 18:12:05 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2021-04-21 18:12:05 -0400
commit7b357cc6ae553c0ecacdc11b2e5278b7bf477dba (patch)
tree8223bd010a5f1f0d1ef49bae67ebd7566e645b07 /contrib/postgres_fdw/postgres_fdw.c
parente014d25deade08df082d2b37de45adb0c984f563 (diff)
downloadpostgresql-7b357cc6ae553c0ecacdc11b2e5278b7bf477dba.tar.gz
postgresql-7b357cc6ae553c0ecacdc11b2e5278b7bf477dba.zip
Don't add a redundant constraint when detaching a partition
On ALTER TABLE .. DETACH CONCURRENTLY, we add a new table constraint that duplicates the partition constraint. But if the partition already has another constraint that implies that one, then that's unnecessary. We were already avoiding the addition of a duplicate constraint if there was an exact 'equal' match -- this just improves the quality of the check. Author: Justin Pryzby <pryzby@telsasoft.com> Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org> Discussion: https://postgr.es/m/20210410184226.GY6592@telsasoft.com
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions