summaryrefslogtreecommitdiff
path: root/src/backend/utils
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2001-03-23 04:49:58 +0000
committerBruce Momjian <bruce@momjian.us>2001-03-23 04:49:58 +0000
commit7cf952e7b4ad4d0d603ad13ab91f55c3ec41affe (patch)
tree21c9d56c3701e984573ecc3ff40e72c0f63d5baf /src/backend/utils
parent4e911c847ce906094df6595700571b714d3bb537 (diff)
downloadpostgresql-7cf952e7b4ad4d0d603ad13ab91f55c3ec41affe.tar.gz
Fix comments that were mis-wrapped, for Tom Lane.
Diffstat (limited to 'src/backend/utils')
-rw-r--r--src/backend/utils/adt/formatting.c18
-rw-r--r--src/backend/utils/adt/selfuncs.c9
-rw-r--r--src/backend/utils/cache/lsyscache.c4
-rw-r--r--src/backend/utils/cache/relcache.c15
-rw-r--r--src/backend/utils/sort/tuplesort.c8
5 files changed, 32 insertions, 22 deletions
diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c
index 0946ea9e49..7e68d7e984 100644
--- a/src/backend/utils/adt/formatting.c
+++ b/src/backend/utils/adt/formatting.c
@@ -1,7 +1,7 @@
/* -----------------------------------------------------------------------
* formatting.c
*
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.35 2001/03/22 06:16:17 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.36 2001/03/23 04:49:54 momjian Exp $
*
*
* Portions Copyright (c) 1999-2000, PostgreSQL Global Development Group
@@ -2846,9 +2846,11 @@ to_timestamp(PG_FUNCTION_ARGS)
else if (tmfc->yy)
{
- /*
- * 2-digit year: '00' ... '69' = 2000 ... 2069 '70' ... '99' =
- * 1970 ... 1999
+ /*---------
+ * 2-digit year:
+ * '00' ... '69' = 2000 ... 2069
+ * '70' ... '99' = 1970 ... 1999
+ *---------
*/
tm->tm_year = tmfc->yy;
@@ -2860,9 +2862,11 @@ to_timestamp(PG_FUNCTION_ARGS)
else if (tmfc->yyy)
{
- /*
- * 3-digit year: '100' ... '999' = 1100 ... 1999 '000' ... '099' =
- * 2000 ... 2099
+ /*---------
+ * 3-digit year:
+ * '100' ... '999' = 1100 ... 1999
+ * '000' ... '099' = 2000 ... 2099
+ *---------
*/
tm->tm_year = tmfc->yyy;
diff --git a/src/backend/utils/adt/selfuncs.c b/src/backend/utils/adt/selfuncs.c
index b7af8b9ca5..1fe0afb0a3 100644
--- a/src/backend/utils/adt/selfuncs.c
+++ b/src/backend/utils/adt/selfuncs.c
@@ -15,7 +15,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.86 2001/03/22 03:59:54 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.87 2001/03/23 04:49:54 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1642,9 +1642,10 @@ prefix_selectivity(char *prefix,
Int32GetDatum(SEL_CONSTANT | SEL_RIGHT)));
pfree(DatumGetPointer(prefixcon));
- /*
- * If we can create a string larger than the prefix, say "x <
- * greaterstr".
+ /*-------
+ * If we can create a string larger than the prefix, say
+ * "x < greaterstr".
+ *-------
*/
greaterstr = make_greater_string(prefix, datatype);
if (greaterstr)
diff --git a/src/backend/utils/cache/lsyscache.c b/src/backend/utils/cache/lsyscache.c
index 4882094bee..82d5586621 100644
--- a/src/backend/utils/cache/lsyscache.c
+++ b/src/backend/utils/cache/lsyscache.c
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/cache/lsyscache.c,v 1.51 2001/03/22 03:59:57 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/cache/lsyscache.c,v 1.52 2001/03/23 04:49:55 momjian Exp $
*
* NOTES
* Eventually, the index information should go through here, too.
@@ -272,7 +272,7 @@ get_attdispersion(Oid relid, AttrNumber attnum, double min_estimate)
/*
* VACUUM ANALYZE has not been run for this table. Produce an estimate
- * = 1/numtuples. This may produce unreasonably small estimates for
+ * of 1/numtuples. This may produce unreasonably small estimates for
* large tables, so limit the estimate to no less than min_estimate.
*/
dispersion = 1.0 / (double) ntuples;
diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c
index fc97f46910..a92f65add5 100644
--- a/src/backend/utils/cache/relcache.c
+++ b/src/backend/utils/cache/relcache.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.129 2001/03/22 03:59:57 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.130 2001/03/23 04:49:55 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -2833,11 +2833,14 @@ write_irels(void)
* the descriptors, nail them into cache so we never lose them.
*/
- /*
- * Removed the following ProcessingMode change -- inoue At this point
- * 1) Catalog Cache isn't initialized 2) Relation Cache for the
- * following critical indexes aren't built oldmode =
- * GetProcessingMode(); SetProcessingMode(BootstrapProcessing);
+ /*---------
+ * Removed the following ProcessingMode change -- inoue
+ * At this point
+ * 1) Catalog Cache isn't initialized
+ * 2) Relation Cache for the following critical indexes aren't built
+ * oldmode = GetProcessingMode();
+ * SetProcessingMode(BootstrapProcessing);
+ *---------
*/
bi.infotype = INFO_RELNAME;
diff --git a/src/backend/utils/sort/tuplesort.c b/src/backend/utils/sort/tuplesort.c
index 38f4c2fc91..d27bfb2966 100644
--- a/src/backend/utils/sort/tuplesort.c
+++ b/src/backend/utils/sort/tuplesort.c
@@ -78,7 +78,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/sort/tuplesort.c,v 1.14 2001/03/22 04:00:09 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/sort/tuplesort.c,v 1.15 2001/03/23 04:49:55 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -129,8 +129,10 @@ struct Tuplesortstate
* kind of tuple we are sorting from the routines that don't need to
* know it. They are set up by the tuplesort_begin_xxx routines.
*
- * Function to compare two tuples; result is per qsort() convention, ie,
- * <0, 0, >0 according as a<b, a=b, a>b.
+ * Function to compare two tuples; result is per qsort() convention,
+ * ie:
+ *
+ * <0, 0, >0 according as a<b, a=b, a>b.
*/
int (*comparetup) (Tuplesortstate *state, const void *a, const void *b);