Minor cleanup/code review for "indirect toast" stuff.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 9 Feb 2015 17:30:52 +0000 (12:30 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 9 Feb 2015 17:30:52 +0000 (12:30 -0500)
commitbc4de01db3a210e988dc88b585d7c38e6e7054c7
tree7d7063c0e76c80f1c94e7306691be3b328d4b494
parentc619c2351f7ec429b6ddce519c939f7b8465d711
Minor cleanup/code review for "indirect toast" stuff.

Fix some issues I noticed while fooling with an extension to allow an
additional kind of toast pointer.  Much of this is just comment
improvement, but there are a couple of actual bugs, which might or might
not be reachable today depending on what can happen during logical
decoding.  An example is that toast_flatten_tuple() failed to cover the
possibility of an indirection pointer in its input.  Back-patch to 9.4
just in case that is reachable now.

In HEAD, also correct some really minor issues with recent compression
reorganization, such as dangerously underparenthesized macros.
src/backend/access/heap/tuptoaster.c
src/include/access/tuptoaster.h
src/include/postgres.h