aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/cluster.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-11-23 18:26:45 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-11-23 18:26:45 +0000
commit4c61c827d3d71f7475d8f9a35c04aca196a18c35 (patch)
tree6ada3bfb1b1debd9445064996bc54eae5f02ee7d /src/backend/commands/cluster.c
parent17d938320db26ccfb188ce9a29e5d8f512e43007 (diff)
downloadpostgresql-4c61c827d3d71f7475d8f9a35c04aca196a18c35.tar.gz
postgresql-4c61c827d3d71f7475d8f9a35c04aca196a18c35.zip
Fix compile warnings from truncate patch.
Diffstat (limited to 'src/backend/commands/cluster.c')
-rw-r--r--src/backend/commands/cluster.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index 68b1f12e082..aadc388a44f 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.96 2002/11/23 04:05:51 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.97 2002/11/23 18:26:45 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -184,7 +184,7 @@ rebuild_rel(Oid tableOid, Oid indexOid, List *indexes, bool dataCopy)
* If dataCopy is true, we assume that we will be basing the
* copy off an index for cluster operations.
*/
- Assert(!dataCopy || indexOid != NULL);
+ Assert(!dataCopy || OidIsValid(indexOid));
/*
* Create the new heap, using a temporary name in the same namespace
* as the existing table. NOTE: there is some risk of collision with