Re: Recursive queries?

From: Hans-Jürgen Schönig <postgres(at)cybertec(dot)at>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Recursive queries?
Date: 2004-02-04 17:47:43
Message-ID: 4021303F.3060308@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> =?ISO-8859-1?Q?Hans-J=FCrgen_Sch=F6nig?= <postgres(at)cybertec(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-02-04 18:07:51 Re: Recursive queries?
Previous Message strk 2004-02-04 17:35:11 Re: PostGIS Integration