Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 293C14761D8 for ; Tue, 22 Oct 2002 12:14:52 -0400 (EDT) Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (Postfix) with ESMTP id 7BAB1476138 for ; Tue, 22 Oct 2002 12:14:51 -0400 (EDT) Received: from [63.195.55.98] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.5.9) with HTTP id 1795262; Tue, 22 Oct 2002 09:16:09 -0700 From: "Josh Berkus" Subject: Re: Can I search for an array in csf? To: vernonw@gatewaytech.com Cc: pgsql-sql@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.3.5.9 Date: Tue, 22 Oct 2002 09:16:09 -0700 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/280 X-Sequence-Number: 9997 Vernon, > Thanks Josh, I will take a look at this book. > > The only problem with the implemention I can see so far is > performance: change format when read/write data. Other > than that, I don't see a big problem. I, however, shall say the > performance is important in my project. I'd think Java would be able to do array --> table and table --> array very quickly. Certainly, PHP and Perl do. Also, you can use a custom aggregate to give yourself a comma-delimited list from a subtable (see the article on custom aggregates at techdocs.postgresql.org) However, custom aggregates are slow and Java's array-handling is probably faster. -Josh Berkus