From 39b5e5f3370258cae843e8cc83eccd59ddb532dd Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Thu, 20 Jan 2011 22:44:10 -0500 Subject: Make ALTER TABLE revalidate uniqueness and exclusion constraints. Failure to do so can lead to constraint violations. This was broken by commit 1ddc2703a936d03953657f43345460b9242bbed1 on 2010-02-07, so back-patch to 9.0. Noah Misch. Regression test by me. --- src/include/commands/cluster.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include/commands/cluster.h') diff --git a/src/include/commands/cluster.h b/src/include/commands/cluster.h index ed3853af24c..a5aeb1aa103 100644 --- a/src/include/commands/cluster.h +++ b/src/include/commands/cluster.h @@ -28,6 +28,7 @@ extern Oid make_new_heap(Oid OIDOldHeap, Oid NewTableSpace); extern void finish_heap_swap(Oid OIDOldHeap, Oid OIDNewHeap, bool is_system_catalog, bool swap_toast_by_content, + bool check_constraints, TransactionId frozenXid); #endif /* CLUSTER_H */ -- cgit v1.2.3