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

Commit4c61c82

Browse files
committed
Fix compile warnings from truncate patch.
1 parent17d9383 commit4c61c82

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎src/backend/commands/cluster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.96 2002/11/2304:05:51 momjian Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.97 2002/11/2318:26:45 tgl Exp $
1515
*
1616
*-------------------------------------------------------------------------
1717
*/
@@ -184,7 +184,7 @@ rebuild_rel(Oid tableOid, Oid indexOid, List *indexes, bool dataCopy)
184184
* If dataCopy is true, we assume that we will be basing the
185185
* copy off an index for cluster operations.
186186
*/
187-
Assert(!dataCopy||indexOid!=NULL);
187+
Assert(!dataCopy||OidIsValid(indexOid));
188188
/*
189189
* Create the new heap, using a temporary name in the same namespace
190190
* as the existing table. NOTE: there is some risk of collision with

‎src/backend/commands/tablecmds.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.56 2002/11/2304:05:51 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.57 2002/11/2318:26:45 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -449,7 +449,7 @@ TruncateRelation(const RangeVar *relation)
449449
* Do the real work using the same technique as cluster, but
450450
* without the code copy portion
451451
*/
452-
rebuild_rel(relid,NULL,indexes, false);
452+
rebuild_rel(relid,InvalidOid,indexes, false);
453453
}
454454

455455
/*----------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp