postgresql/src/backend
Tom Lane 23c4978e6c Rename MaxTupleSize to MaxHeapTupleSize to clarify that it's not meant to
describe the maximum size of index tuples (which is typically AM-dependent
anyway); and consequently remove the bogus deduction for "special space"
that was built into it.

Adjust TOAST_TUPLE_THRESHOLD and TOAST_MAX_CHUNK_SIZE to avoid wasting two
bytes per toast chunk, and to ensure that the calculation correctly tracks any
future changes in page header size.  The computation had been inaccurate in a
way that didn't cause any harm except space wastage, but future changes could
have broken it more drastically.

Fix the calculation of BTMaxItemSize, which was formerly computed as 1 byte
more than it could safely be.  This didn't cause any harm in practice because
it's only compared against maxalign'd lengths, but future changes in the size
of page headers or btree special space could have exposed the problem.

initdb forced because of change in TOAST_MAX_CHUNK_SIZE, which alters the
storage of toast tables.
2007-02-05 04:22:18 +00:00
..
access Rename MaxTupleSize to MaxHeapTupleSize to clarify that it's not meant to 2007-02-05 04:22:18 +00:00
bootstrap Add COST and ROWS options to CREATE/ALTER FUNCTION, plus underlying pg_proc 2007-01-22 01:35:23 +00:00
catalog Update SQL conformance information about XML features. 2007-02-03 17:59:36 +00:00
commands Rename MaxTupleSize to MaxHeapTupleSize to clarify that it's not meant to 2007-02-05 04:22:18 +00:00
executor Implement XMLSERIALIZE for real. Analogously, make the xml to text cast 2007-02-03 14:06:56 +00:00
lib Remove remains of old depend target. 2007-01-20 17:16:17 +00:00
libpq On Windows, use pgwin32_waitforsinglesocket() instead of select() to wait for 2007-01-26 20:06:52 +00:00
main Remove remains of old depend target. 2007-01-20 17:16:17 +00:00
nodes Implement XMLSERIALIZE for real. Analogously, make the xml to text cast 2007-02-03 14:06:56 +00:00
optimizer Repair insufficiently careful type checking for SQL-language functions: 2007-02-02 00:02:55 +00:00
parser Implement XMLSERIALIZE for real. Analogously, make the xml to text cast 2007-02-03 14:06:56 +00:00
po Translation updates 2006-12-02 01:16:16 +00:00
port Wording cleanup for error messages. Also change can't -> cannot. 2007-02-01 19:10:30 +00:00
postmaster Update process termination message to display signal number and name 2007-01-29 20:17:40 +00:00
regex Wording cleanup for error messages. Also change can't -> cannot. 2007-02-01 19:10:30 +00:00
rewrite Wording cleanup for error messages. Also change can't -> cannot. 2007-02-01 19:10:30 +00:00
storage Wording cleanup for error messages. Also change can't -> cannot. 2007-02-01 19:10:30 +00:00
tcop Add CREATE/ALTER/DROP OPERATOR FAMILY commands, also COMMENT ON OPERATOR 2007-01-23 05:07:18 +00:00
utils Implement XMLSERIALIZE for real. Analogously, make the xml to text cast 2007-02-03 14:06:56 +00:00
Makefile Remove remains of old depend target. 2007-01-20 17:16:17 +00:00
nls.mk Add _ to gettext triggers. Must have been forgotten here when it was introduced. 2005-10-04 11:14:03 +00:00