From 565639cde0787f32e20e0b51591a7ad0a07c2aff Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 12 Jan 2001 01:22:21 +0000 Subject: [PATCH] Preserve constraints and column defaults during CLUSTER. Wish they were all this easy ... --- src/backend/commands/cluster.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index c81cb041e9..4aeae71561 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -15,7 +15,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.62 2001/01/10 01:12:28 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.63 2001/01/12 01:22:21 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -157,7 +157,7 @@ copy_heap(Oid OIDOldHeap, char *NewName, bool istemp) * Need to make a copy of the tuple descriptor, * since heap_create_with_catalog modifies it. */ - tupdesc = CreateTupleDescCopy(OldHeapDesc); + tupdesc = CreateTupleDescCopyConstr(OldHeapDesc); OIDNewHeap = heap_create_with_catalog(NewName, tupdesc, RELKIND_RELATION, istemp, -- 2.40.0