aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-07-20 16:57:18 +0000
committerBruce Momjian <bruce@momjian.us>1998-07-20 16:57:18 +0000
commit0da6358f373c2736626b4189a3e7e413e107b9a0 (patch)
tree686ef135cf4f3cb094b833f1d754e95e4e7766fd /src/backend/access
parent34797d42253d488423b7a86a4a8335786b65cb59 (diff)
downloadpostgresql-0da6358f373c2736626b4189a3e7e413e107b9a0.tar.gz
postgresql-0da6358f373c2736626b4189a3e7e413e107b9a0.zip
Cleanup use of 16 that should be NAMEDATALEN.
Diffstat (limited to 'src/backend/access')
-rw-r--r--src/backend/access/gist/gist.c2
-rw-r--r--src/backend/access/heap/heapam.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c
index efa5286c1f4..5003204df4a 100644
--- a/src/backend/access/gist/gist.c
+++ b/src/backend/access/gist/gist.c
@@ -1347,7 +1347,7 @@ text_range_out(TXTRANGE *r)
if (r == NULL)
return (NULL);
- result = (char *) palloc(16 + VARSIZE(TRLOWER(r)) + VARSIZE(TRUPPER(r))
+ result = (char *) palloc(NAMEDATALEN + VARSIZE(TRLOWER(r)) + VARSIZE(TRUPPER(r))
- 2 * VARHDRSZ);
lower = (char *) palloc(VARSIZE(TRLOWER(r)) + 1 - VARHDRSZ);
diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c
index b23b658f409..10c0abd2cd0 100644
--- a/src/backend/access/heap/heapam.c
+++ b/src/backend/access/heap/heapam.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.29 1998/06/16 02:53:25 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.30 1998/07/20 16:56:53 momjian Exp $
*
*
* INTERFACE ROUTINES
@@ -239,18 +239,18 @@ heapgettup(Relation relation,
#ifdef HEAPDEBUGALL
if (ItemPointerIsValid(tid))
{
- elog(DEBUG, "heapgettup(%.16s, tid=0x%x[%d,%d], dir=%d, ...)",
+ elog(DEBUG, "heapgettup(%s, tid=0x%x[%d,%d], dir=%d, ...)",
RelationGetRelationName(relation), tid, tid->ip_blkid,
tid->ip_posid, dir);
}
else
{
- elog(DEBUG, "heapgettup(%.16s, tid=0x%x, dir=%d, ...)",
+ elog(DEBUG, "heapgettup(%s, tid=0x%x, dir=%d, ...)",
RelationGetRelationName(relation), tid, dir);
}
elog(DEBUG, "heapgettup(..., b=0x%x, nkeys=%d, key=0x%x", b, nkeys, key);
- elog(DEBUG, "heapgettup: relation(%c)=`%.16s', %s",
+ elog(DEBUG, "heapgettup: relation(%c)=`%s', %s",
relation->rd_rel->relkind, &relation->rd_rel->relname,
(seeself == true) ? "SeeSelf" : "NoSeeSelf");
#endif /* !defined(HEAPDEBUGALL) */