projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09f88b6
)
Update tuple size check.
author
Bruce Momjian
<bruce@momjian.us>
Sat, 3 Jul 1999 01:56:16 +0000
(
01:56
+0000)
committer
Bruce Momjian
<bruce@momjian.us>
Sat, 3 Jul 1999 01:56:16 +0000
(
01:56
+0000)
src/backend/access/heap/hio.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/access/heap/hio.c
b/src/backend/access/heap/hio.c
index a00b9638e606012bee5613b042af588ce3630e90..7cb5ce93163bd0c5cf7b42c296f51ea132538d27 100644
(file)
--- a/
src/backend/access/heap/hio.c
+++ b/
src/backend/access/heap/hio.c
@@
-162,10
+162,13
@@
RelationPutHeapTupleAtEnd(Relation relation, HeapTuple tuple)
pageHeader = (Page) BufferGetPage(buffer);
PageInit(pageHeader, BufferGetPageSize(buffer), 0);
- if (len > PageGetFreeSpace(pageHeader)
&& len <= MaxTupleSize
)
+ if (len > PageGetFreeSpace(pageHeader))
elog(ERROR, "Tuple is too big: size %d", len);
}
+ if (len > MaxTupleSize)
+ elog(ERROR, "Tuple is too big: size %d, max size %d", len, MaxTupleSize);
+
if (!relation->rd_myxactonly)
UnlockPage(relation, 0, ExclusiveLock);