aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/cluster.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2003-03-20 03:34:57 +0000
committerBruce Momjian <bruce@momjian.us>2003-03-20 03:34:57 +0000
commita18331004a15c4e37fe88312bd882b49edb8228f (patch)
tree40ce63073108d5823958c460bc7698fb97423428 /src/backend/commands/cluster.c
parentddd50a0babd9a8ae478eee607108b7ed5675571d (diff)
downloadpostgresql-a18331004a15c4e37fe88312bd882b49edb8228f.tar.gz
postgresql-a18331004a15c4e37fe88312bd882b49edb8228f.zip
Add start time to pg_stat_activity
Neil Conway
Diffstat (limited to 'src/backend/commands/cluster.c')
-rw-r--r--src/backend/commands/cluster.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index 30d251869bc..0c1a7d3c70c 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.106 2003/03/03 04:37:37 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.107 2003/03/20 03:34:55 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -405,7 +405,7 @@ rebuild_relation(Relation OldHeap, Oid indexOid)
* namespace from the old, or we will have problems with the TEMP
* status of temp tables.
*/
- snprintf(NewHeapName, NAMEDATALEN, "pg_temp_%u", tableOid);
+ snprintf(NewHeapName, sizeof(NewHeapName), "pg_temp_%u", tableOid);
OIDNewHeap = make_new_heap(tableOid, NewHeapName);
/*
@@ -625,7 +625,8 @@ rebuild_indexes(Oid OIDOldHeap, List *indexes)
Relation pg_index;
/* Create the new index under a temporary name */
- snprintf(newIndexName, NAMEDATALEN, "pg_temp_%u", attrs->indexOID);
+ snprintf(newIndexName, sizeof(newIndexName),
+ "pg_temp_%u", attrs->indexOID);
/*
* The new index will have primary and constraint status set to