Re: WITH clause

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: WITH clause
Дата
Msg-id 200312121947.26443.peter_e@gmx.net
обсуждение исходный текст
Ответ на WITH clause  (David Fetter <david@fetter.org>)
Ответы Re: WITH clause  (David Fetter <david@fetter.org>)
Список pgsql-hackers
David Fetter wrote:
> 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];

Two questions:

1. What does this have to do with the SQL WITH clause?

2. How does the generalize to arbitrary user-defined operators?



В списке pgsql-hackers по дате отправления:

Предыдущее
От: David Fetter
Дата:
Сообщение: WITH clause
Следующее
От: Tom Lane
Дата:
Сообщение: Re: WITH clause