Create a new expression node type RelabelType, which exists solely to

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 57b30e8e226014c8d06bae0158e0c7fc679f700b
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2000-02-20T21:32:16Z
Releases: 7.1.1
Create a new expression node type RelabelType, which exists solely to
represent the result of a binary-compatible type coercion.  At runtime
it just evaluates its argument --- but during type resolution, exprType
will pick up the output type of the RelabelType node instead of the type
of the argument.  This solves some longstanding problems with dropped
type coercions, an example being 'select now()::abstime::int4' which
used to produce date-formatted output, not an integer, because the
coercion to int4 was dropped on the floor.

Files