Re: recursive view syntax - Mailing list pgsql-hackers

From Abhijit Menon-Sen
Subject Re: recursive view syntax
Date
Msg-id 20121213124814.GA3920@toroid.org
Whole thread Raw
In response to recursive view syntax  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
At 2012-11-13 23:32:15 -0500, peter_e@gmx.net wrote:
>
> I noticed we don't implement the recursive view syntax, even though
> it's part of the standard SQL feature set for recursive queries.
> Here is a patch to add that.  It basically converts
> 
> CREATE RECURSIVE VIEW name (columns) AS SELECT ...;
> 
> to
> 
> CREATE VIEW name AS WITH RECURSIVE name (columns) AS (SELECT ...)
> SELECT columns FROM name;

Hi.

Sorry I took so long to post a review of this patch. I'm afraid it
tempted me to digress into figuring out how WITH RECURSIVE works. :-)

I don't have much to say about the patch, though: it applies to HEAD and
builds cleanly, passes "make check", and has suitable documentation with
an example. The code looks fine.

I'm marking it ready for committer.

-- Abhijit



pgsql-hackers by date:

Previous
From: Kohei KaiGai
Date:
Subject: Re: [v9.3] OAT_POST_ALTER object access hooks
Next
From: "Karl O. Pinc"
Date:
Subject: Re: Multiple --table options for other commands