Re: Questions about parsing boolean and casting to anyelement
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Questions about parsing boolean and casting to anyelement |
| Дата | |
| Msg-id | 6993.1234900207@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Questions about parsing boolean and casting to anyelement (Brendan Jurd <direvus@gmail.com>) |
| Список | pgsql-hackers |
Brendan Jurd <direvus@gmail.com> writes:
> 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().
No, pg_typeof is a more-or-less ordinary function that delivers an OID
at runtime. What we need here is something that will work as a CAST
target, ie, it has to be treated as a type name at parse time.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера