mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
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.
This commit is contained in:
@@ -96,10 +96,10 @@
|
||||
VARHDRSZ)
|
||||
|
||||
/* Size of an EXTERNAL datum that contains a standard TOAST pointer */
|
||||
#define TOAST_POINTER_SIZE (VARHDRSZ_EXTERNAL + sizeof(struct varatt_external))
|
||||
#define TOAST_POINTER_SIZE (VARHDRSZ_EXTERNAL + sizeof(varatt_external))
|
||||
|
||||
/* Size of an indirect datum that contains a standard TOAST pointer */
|
||||
#define INDIRECT_POINTER_SIZE (VARHDRSZ_EXTERNAL + sizeof(struct varatt_indirect))
|
||||
/* Size of an EXTERNAL datum that contains an indirection pointer */
|
||||
#define INDIRECT_POINTER_SIZE (VARHDRSZ_EXTERNAL + sizeof(varatt_indirect))
|
||||
|
||||
/*
|
||||
* Testing whether an externally-stored value is compressed now requires
|
||||
|
||||
Reference in New Issue
Block a user