Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 565639c

Browse files
committed
Preserve constraints and column defaults during CLUSTER.
Wish they were all this easy ...
1 parent 1db943b commit 565639c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/commands/cluster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
*
1717
* IDENTIFICATION
18-
* $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.62 2001/01/10 01:12:28 tgl Exp $
18+
* $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.63 2001/01/12 01:22:21 tgl Exp $
1919
*
2020
*-------------------------------------------------------------------------
2121
*/
@@ -157,7 +157,7 @@ copy_heap(Oid OIDOldHeap, char *NewName, bool istemp)
157157
* Need to make a copy of the tuple descriptor,
158158
* since heap_create_with_catalog modifies it.
159159
*/
160-
tupdesc = CreateTupleDescCopy(OldHeapDesc);
160+
tupdesc = CreateTupleDescCopyConstr(OldHeapDesc);
161161

162162
OIDNewHeap = heap_create_with_catalog(NewName, tupdesc,
163163
RELKIND_RELATION, istemp,

0 commit comments

Comments
 (0)