7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.73 1998/08/1922:01:18 momjian Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.74 1998/08/1923:48:21 momjian Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -187,8 +187,11 @@ vc_init()
187
187
int fd ;
188
188
189
189
if ((fd = open ("pg_vlock" ,O_CREAT |O_EXCL ,0600 ))< 0 )
190
- elog (ERROR ,"can't create lock file -- another vacuum cleaner running?" );
191
-
190
+ {
191
+ elog (ERROR ,"Can't create lock file -- another vacuum cleaner running?\n\
192
+ \tIf not, you may remove the pg_vlock file in the pgsql/data/base/your_db\n\
193
+ \tdirectory" );
194
+ }
192
195
close (fd );
193
196
194
197
/*
@@ -1443,13 +1446,13 @@ vc_scanoneind(Relation indrel, int num_tuples)
1443
1446
1444
1447
getrusage (RUSAGE_SELF ,& ru1 );
1445
1448
1446
- elog (MESSAGE_LEVEL ,"Ind %s: Pages %u; Tuples %u. Elapsed %u/%u sec." ,
1449
+ elog (MESSAGE_LEVEL ,"Index %s: Pages %u; Tuples %u. Elapsed %u/%u sec." ,
1447
1450
indrel -> rd_rel -> relname .data ,nipages ,nitups ,
1448
1451
ru1 .ru_stime .tv_sec - ru0 .ru_stime .tv_sec ,
1449
1452
ru1 .ru_utime .tv_sec - ru0 .ru_utime .tv_sec );
1450
1453
1451
1454
if (nitups != num_tuples )
1452
- elog (NOTICE ,"Ind %s: NUMBER OF INDEX' TUPLES (%u) IS NOT THE SAME AS HEAP' (%u)" ,
1455
+ elog (NOTICE ,"Index %s: NUMBER OF INDEX' TUPLES (%u) IS NOT THE SAME AS HEAP' (%u)" ,
1453
1456
indrel -> rd_rel -> relname .data ,nitups ,num_tuples );
1454
1457
1455
1458
}/* vc_scanoneind */
@@ -1502,7 +1505,7 @@ vc_vaconeind(VPageList vpl, Relation indrel, int num_tuples)
1502
1505
#endif
1503
1506
if (vp -> vpd_offsets_free == 0 )
1504
1507
{/* this is EmptyPage !!! */
1505
- elog (NOTICE ,"Ind %s: pointer to EmptyPage (blk %u off %u) - fixing" ,
1508
+ elog (NOTICE ,"Index %s: pointer to EmptyPage (blk %u off %u) - fixing" ,
1506
1509
indrel -> rd_rel -> relname .data ,
1507
1510
vp -> vpd_blkno ,ItemPointerGetOffsetNumber (heapptr ));
1508
1511
}
@@ -1523,13 +1526,13 @@ vc_vaconeind(VPageList vpl, Relation indrel, int num_tuples)
1523
1526
1524
1527
getrusage (RUSAGE_SELF ,& ru1 );
1525
1528
1526
- elog (MESSAGE_LEVEL ,"Ind %s: Pages %u; Tuples %u: Deleted %u. Elapsed %u/%u sec." ,
1529
+ elog (MESSAGE_LEVEL ,"Index %s: Pages %u; Tuples %u: Deleted %u. Elapsed %u/%u sec." ,
1527
1530
indrel -> rd_rel -> relname .data ,num_pages ,num_index_tuples ,tups_vacuumed ,
1528
1531
ru1 .ru_stime .tv_sec - ru0 .ru_stime .tv_sec ,
1529
1532
ru1 .ru_utime .tv_sec - ru0 .ru_utime .tv_sec );
1530
1533
1531
1534
if (num_index_tuples != num_tuples )
1532
- elog (NOTICE ,"Ind %s: NUMBER OF INDEX' TUPLES (%u) IS NOT THE SAME AS HEAP' (%u)" ,
1535
+ elog (NOTICE ,"Index %s: NUMBER OF INDEX' TUPLES (%u) IS NOT THE SAME AS HEAP' (%u)" ,
1533
1536
indrel -> rd_rel -> relname .data ,num_index_tuples ,num_tuples );
1534
1537
1535
1538
}/* vc_vaconeind */