Re: WIP: hooking parser

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: WIP: hooking parser
Date: 2009-02-18 15:05:03
Message-ID: 499C239F.7070706@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Pavel Stehule wrote:
> 2009/2/16 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
>> Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
>>> Next sample of parser hook using:
>>> attachment contains module that transform every empty string to null.
>>> I am not sure, if this behave is exactly compatible with Oracle,
>> Surely a parser hook like this would have nothing whatsoever to do
>> with Oracle's behavior.
>>
>> regards, tom lane
>>
>
> it's maybe too much simple :). It is sample that have to show possibility.

I'd be quite interested to support some kind of hook to deal with this
Oracle null issue. It would be a great help for porting projects.

However, doing this properly is probably more complex and needs further
thought. I'd suggest writing a type of regression test first for Oracle
null behavior and then evaluating any kind of hook or hack against that.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Sam Mason 2009-02-18 15:13:44 Re: The science of optimization in practical terms?
Previous Message Alvaro Herrera 2009-02-18 14:57:41 Re: SIMILAR TO bug?