Re: Modifying SQL parser with extensions?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Matthias Luedtke <matthias-luedtke(at)gmx(dot)de>, pgsql-general(at)postgresql(dot)org
Subject: Re: Modifying SQL parser with extensions?
Date: 2006-10-30 01:10:22
Message-ID: 2911.1162170622@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> Matthias Luedtke wrote:
>> Basically, conditional statements are annotated with integers that
>> represent weights, like
>>
>> (...)WHERE (foo = 'a')[42] OR (bar = 'b')[20]

> (That particular notation has the drawback that the [n]
> would be interpreted as an array index though.)

Indeed --- unless you are prepared to rip out array support, you had
better choose some other notation.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ganbold 2006-10-30 02:30:19 postgresql books and convertion utilities
Previous Message Peter Wilson 2006-10-29 23:11:06 Re: Wordpress & PostgreSQL ...