Peter Geoghegan wrote:
> Couldn't we adopt
> AssertVariableIsOfType()/AssertVariableIsOfTypeMacro() to macros like
> READ_UINT_FIELD()?
>
> I'm surprised that this stuff was only ever used for logical decoding
> infrastructure so far.
The reason it's only used there is that Andres is the one who introduced
those macros precisely for that code. We've not yet had time to adjust
the rest of the code to have more sanity checks.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services