aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/heap/hio.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2000-11-16 05:51:07 +0000
committerBruce Momjian <bruce@momjian.us>2000-11-16 05:51:07 +0000
commit312063c97be346c3ce01faff021e9bff0464fa5c (patch)
treea4b33aa5242b3e1172379308804f3b06a89857bc /src/backend/access/heap/hio.c
parent580d2bc60f0e225e3fffc4da81039cf28e249749 (diff)
downloadpostgresql-312063c97be346c3ce01faff021e9bff0464fa5c.tar.gz
postgresql-312063c97be346c3ce01faff021e9bff0464fa5c.zip
Make pgsql compile on FreeBSD-alpha.
Context diff this time. Remove -m486 compile args for FreeBSD-i386, compile -O2 on i386. Compile with only -O on alpha for codegen safety. Make the port use the TEST_AND_SET for alpha and i386 on FreeBSD. Fix a lot of bogus string formats for outputting pointers (cast to int and %u/%x replaced with no cast and %p), and 'Size'(size_t) are now cast to 'unsigned long' and output with %lu/ Remove an unused variable. Alfred Perlstein
Diffstat (limited to 'src/backend/access/heap/hio.c')
-rw-r--r--src/backend/access/heap/hio.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/backend/access/heap/hio.c b/src/backend/access/heap/hio.c
index 04725b4a7b4..43a94c4c1e3 100644
--- a/src/backend/access/heap/hio.c
+++ b/src/backend/access/heap/hio.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Id: hio.c,v 1.33 2000/09/07 09:58:35 vadim Exp $
+ * $Id: hio.c,v 1.34 2000/11/16 05:50:58 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -91,8 +91,8 @@ RelationGetBufferForTuple(Relation relation, Size len)
* If we're gonna fail for oversize tuple, do it right away
*/
if (len > MaxTupleSize)
- elog(ERROR, "Tuple is too big: size %u, max size %ld",
- len, MaxTupleSize);
+ elog(ERROR, "Tuple is too big: size %lu, max size %ld",
+ (unsigned long)len, MaxTupleSize);
if (!relation->rd_myxactonly)
LockPage(relation, 0, ExclusiveLock);
@@ -139,7 +139,8 @@ RelationGetBufferForTuple(Relation relation, Size len)
if (len > PageGetFreeSpace(pageHeader))
{
/* We should not get here given the test at the top */
- elog(STOP, "Tuple is too big: size %u", len);
+ elog(STOP, "Tuple is too big: size %lu",
+ (unsigned long)len);
}
}