Re: nodes/*funcs.c inconsistencies - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: nodes/*funcs.c inconsistencies
Date
Msg-id 20150803170015.GK2441@postgresql.org
Whole thread Raw
In response to Re: nodes/*funcs.c inconsistencies  (Peter Geoghegan <pg@heroku.com>)
Responses Re: nodes/*funcs.c inconsistencies
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Joe Conway
Date:
Subject: Re: nodes/*funcs.c inconsistencies
Next
From: Simon Riggs
Date:
Subject: Re: Minimum tuple threshold to decide last pass of VACUUM