Received: from student.merz-akademie.de (73.ptr.merz-akademie.de [195.226.105.73] (may be forged)) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eAELjOs64079 for ; Tue, 14 Nov 2000 16:45:24 -0500 (EST) (envelope-from alvar.freude@merz-akademie.de) Received: from merz-akademie.de (news.merz-akademie.de [195.226.105.70]) by student.merz-akademie.de (8.9.3/8.9.3) with ESMTP id WAA28400 for ; Tue, 14 Nov 2000 22:44:08 +0100 Message-ID: <3A11B31C.A79C972C@merz-akademie.de> Date: Tue, 14 Nov 2000 22:48:12 +0100 From: Alvar Freude Organization: http://a-blast.org/ X-Mailer: Mozilla 4.7 [de] (WinNT; I) X-Accept-Language: de MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Re: Using Array-Values in subselect References: <3A11A5EF.C74A40EE@merz-akademie.de> <3A11AB5F.C3F2C467@cc.usu.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200011/115 X-Sequence-Number: 146 Roberto Mello schrieb: > Looks like you want something similar to Oracle's CONNECT BY statement. > There are some solutions to that. At OpenACS we had to deal with that so > implemented something like what you described here. > However, the methods described by Joe Celko is his book "SQL For > Smarties" on chapters 28 and 29 (I think) are better and more robust. If > you search for "trees" and related topics at the openacs.org and > arsdigita.com's web/db web bulletin boards, you'll find several hits. Thanks, the solutions discussed on these sites suggest the use of lookup tables with parent and child for each record. I have thought about the same, but thought the arrays in Postgres could provide a more elegant way of building a tree. I want to migrate from MySQL to Postgres mainly because the array and subselect features. And finally the article at http://www.phpbuilder.com/columns/tim20001112.php3 convinced me it could run on my small machine. But it appears to me that the arrays always are handled like strings and are not really useful for anything advanced. I can't really believe it, please prove me wrong! I have set great hope in Postgres. :) Alvar -- Alvar C.H. Freude | alvar.freude@merz-akademie.de Demo: http://www.online-demonstration.org/ | Mach mit! Blast-DE: http://www.assoziations-blaster.de/ | Blast-Dich-Fit Blast-EN: http://www.a-blast.org/ | Blast/english