Re: Recursive queries? - Mailing list pgsql-hackers

From Hans-Jürgen Schönig
Subject Re: Recursive queries?
Date
Msg-id 4021303F.3060308@cybertec.at
Whole thread Raw
In response to Re: Recursive queries?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Recursive queries?
List pgsql-hackers
Tom Lane wrote:
> Hans-Jürgen Schönig <postgres@cybertec.at> writes:
> 
>>Does this patch have a serious chance to make it into Pg some day?
>>I think Oracle's syntax is not perfect but is easy to handle and many 
>>people are used to it. In people's mind recursive queries = CONNECT BY 
>>and many people (like me) miss it sadly.
> 
> 
> I would prefer to see us supporting the SQL-standard syntax (WITH etc),
> as it is (1) standard and (2) more flexible than CONNECT BY.  The Red
> Hat work mentioned earlier in the thread was aimed at supporting the
> standard syntax.
> 
>             regards, tom lane


I have already expected an answer like that.
In my very personal opinion (don't cut my head off) I'd vote for both 
syntaxes.
The reasons for that are fairly easy to explain:

- I have to agree with Tom (1, 2).

- CONNECT BY makes sense because it is easier to build applications 
supporting Oracle and PostgreSQL. In case of more complex applications 
(CONNECT BY is definitely more than pure storage of simple data) 
Oracle-Pg compliance is really important (I have seen that a dozen times).
From a marketing point of view both versions make sense - Oracle->Pg 
migration is an increasing market share.From a technical point of view I completely agree with Tom (I have 
learned in the past that Tom us usually right).
Regards,
    Hans


-- 
Cybertec Geschwinde u Schoenig
Schoengrabern 134, A-2020 Hollabrunn, Austria
Tel: +43/2952/30706 or +43/664/233 90 75
www.cybertec.at, www.postgresql.at, kernel.cybertec.at



pgsql-hackers by date:

Previous
From: strk
Date:
Subject: Re: PostGIS Integration
Next
From: Tom Lane
Date:
Subject: Re: Recursive queries?