Re: Questions about parsing boolean and casting to anyelement - Mailing list pgsql-hackers

From Brendan Jurd
Subject Re: Questions about parsing boolean and casting to anyelement
Date
Msg-id 37ed240d0902171136m6808f684rc787d85e42649556@mail.gmail.com
Whole thread Raw
In response to Re: Questions about parsing boolean and casting to anyelement  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Questions about parsing boolean and casting to anyelement  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Wed, Feb 18, 2009 at 2:40 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> After thinking about it for awhile, I don't like the notation anyway
> --- it's not immediately obvious that a cast to anyelement should mean
> something like that.  What seems more sensible to me is to introduce
> a function to get the type of an expression, so that you could write
> something like

We already have such a function, pg_typeof().  I submitted a patch for
it in the November commitfest, and you committed it. [1]

Or is that not the sort of function you were thinking of?

Cheers,
BJ

[1] http://git.postgresql.org/?p=postgresql.git;a=commit;h=1a850edf036a1c7dbb9f4fcfeae1e5f2c68cf049


pgsql-hackers by date:

Previous
From: Teodor Sigaev
Date:
Subject: GIN fast insert
Next
From: Tom Lane
Date:
Subject: Re: Questions about parsing boolean and casting to anyelement