Re: WITH clause - Mailing list pgsql-hackers

From Tom Lane
Subject Re: WITH clause
Date
Msg-id 21100.1071255152@sss.pgh.pa.us
Whole thread Raw
In response to WITH clause  (David Fetter <david@fetter.org>)
List pgsql-hackers
David Fetter <david@fetter.org> writes:
> I'm looking to the SQL WITH clause as a way to get better regex
> support in PostgreSQL.  I've been chatting a little bit about this,
> and here's an idea for a behavior.  Implementation details TBD.

> WITH res = match (x.foo, '([0-9]+)x([0-9]+)')
> SELECT *
> FROM x
> WHERE y = res[2]
> OR    y = res[3];

This doesn't seem to be even remotely compatible with SQL99's idea
of WITH.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: WITH clause
Next
From: David Fetter
Date:
Subject: Re: WITH clause