Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit565639c

Browse files
committed
Preserve constraints and column defaults during CLUSTER.
Wish they were all this easy ...
1 parent1db943b commit565639c

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)

[8]ページ先頭

©2009-2025 Movatter.jp