Re: Questions about parsing boolean and casting to anyelement

Поиск
Список
Период
Сортировка
От Brendan Jurd
Тема Re: Questions about parsing boolean and casting to anyelement
Дата
Msg-id 37ed240d0902171136m6808f684rc787d85e42649556@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Questions about parsing boolean and casting to anyelement  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Questions about parsing boolean and casting to anyelement
Список 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 по дате отправления:

Предыдущее
От: Teodor Sigaev
Дата:
Сообщение: GIN fast insert
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Questions about parsing boolean and casting to anyelement