Decouple the values of TOAST_TUPLE_THRESHOLD and TOAST_MAX_CHUNK_SIZE.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 3 Apr 2007 04:14:26 +0000 (04:14 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 3 Apr 2007 04:14:26 +0000 (04:14 +0000)
commitb3005276eb42bbe9c0975ab8d9aa6f1ebe86850c
treedcf060fd6f6c114d66e31ceb2634dae3a499aa76
parent4fea0ca8f3f6e46c958aecef1863fc1940f7c6aa
Decouple the values of TOAST_TUPLE_THRESHOLD and TOAST_MAX_CHUNK_SIZE.
Add the latter to the values checked in pg_control, since it can't be changed
without invalidating toast table content.  This commit in itself shouldn't
change any behavior, but it lays some necessary groundwork for experimentation
with these toast-control numbers.

Note: while TOAST_TUPLE_THRESHOLD can now be changed without initdb, some
thought still needs to be given to needs_toast_table() in toasting.c before
unleashing random changes.
doc/src/sgml/storage.sgml
src/backend/access/heap/heapam.c
src/backend/access/heap/tuptoaster.c
src/backend/access/transam/xlog.c
src/bin/pg_controldata/pg_controldata.c
src/bin/pg_resetxlog/pg_resetxlog.c
src/include/access/tuptoaster.h
src/include/catalog/pg_control.h