Re: WIP: hooking parser

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: WIP: hooking parser
Дата
Msg-id
17766.1235070126@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Tom Lane <tgl@sss.pgh.pa.us>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Tom Lane <tgl@sss.pgh.pa.us>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Peter Eisentraut <peter_e@gmx.net>
Re: WIP: hooking parser Tom Lane <tgl@sss.pgh.pa.us>
Re: WIP: hooking parser Peter Eisentraut <peter_e@gmx.net>
Re: WIP: hooking parser Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Peter Eisentraut <peter_e@gmx.net>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Tom Lane <tgl@sss.pgh.pa.us>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Peter Eisentraut <peter_e@gmx.net>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Tom Lane <tgl@sss.pgh.pa.us>
Re: WIP: hooking parser Sam Mason <sam@samason.me.uk>
Re: WIP: hooking parser Tom Lane <tgl@sss.pgh.pa.us>
Re: WIP: hooking parser Sam Mason <sam@samason.me.uk>
Re: WIP: hooking parser Peter Eisentraut <peter_e@gmx.net>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Gregory Stark <stark@enterprisedb.com>
Re: WIP: hooking parser Kenneth Marshall <ktm@rice.edu>
Re: WIP: hooking parser Sam Mason <sam@samason.me.uk>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Sam Mason <sam@samason.me.uk>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Sam Mason <sam@samason.me.uk>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Sam Mason <sam@samason.me.uk>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Re: WIP: hooking parser Pavel Stehule <pavel.stehule@gmail.com>
Sam Mason  writes:
> On Wed, Feb 18, 2009 at 10:30:12AM -0500, Tom Lane wrote:
>> AFAIK, the Oracle behavior is just about entirely unrelated to the
>> parser --- it's a matter of runtime comparison behavior.  It is
>> certainly *not* restricted to literal NULL/'' constants, which is the
>> only case that a parser hack can deal with.

> How about introducing a "varchar2" type as in Oracle?

Maybe.  I think right now we don't allow input functions to decide
that a non-null input string should be converted to a NULL, but
that might be fixable.  It'd still be an ugly mess though, since
I suspect you'd have to introduce a whole structure of varchar2
functions/operators paralleling text.  For example, what is Oracle's
handling of || ?  AFAICS they can't be standards compliant there,
which means you need a varchar2-specific nonstrict implementation
of ||, and then to make that work the way Oracle users would expect,
varchar2-ness rather than text-ness would have to propagate through
anything else that might be done to a column before it reaches the ||.
		regards, tom lane

В списке pgsql-hackers по дате отправления
От: Robert Haas
Дата:
От: Bruce Momjian
Дата:
Сообщение: Re: vacuumdb --freeze
FAQ