Peter Eisentraut <peter.eisentr...@enterprisedb.com> writes: > While trying to refactor the node support in various ways, the Value > node is always annoying. […] > This change removes the Value struct and node type and replaces them > by separate Integer, Float, String, and BitString node types that are > proper node types and structs of their own and behave mostly like > normal node types.
This looks like a nice cleanup overall, independent of any future refactoring. > Also, this removes the T_Null node tag, which was previously also a > possible variant of Value but wasn't actually used outside of the > Value contained in A_Const. Replace that by an isnull field in > A_Const. However, the patch adds: > +typedef struct Null > +{ > + NodeTag type; > + char *val; > +} Null; which doesn't seem to be used anywhere. Is that a leftoverf from an intermediate development stage? - ilmari