Re: Remove Value node struct - Mailing list pgsql-hackers

From Dagfinn Ilmari Mannsåker
Subject Re: Remove Value node struct
Date
Msg-id 87pmu1vd3m.fsf@wibble.ilmari.org
Whole thread Raw
In response to Remove Value node struct  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Responses Re: Remove Value node struct
List pgsql-hackers
Peter Eisentraut <peter.eisentraut@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



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: prevent immature WAL streaming
Next
From: Ajin Cherian
Date:
Subject: Re: Failure of subscription tests with topminnow