X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 70FD5DA4F8 for ; Fri, 7 Oct 2005 04:35:33 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 85339-02 for ; Fri, 7 Oct 2005 07:35:27 +0000 (GMT) Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by svr1.postgresql.org (Postfix) with ESMTP id 771D0DA4FD for ; Fri, 7 Oct 2005 04:35:28 -0300 (ADT) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 4FCA844256A; Fri, 7 Oct 2005 08:35:25 +0100 (BST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id D80DB15EDA; Fri, 7 Oct 2005 08:31:43 +0100 (BST) Received: from mainbox.archonet.com ([127.0.0.1]) by localhost (mainbox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09286-01; Fri, 7 Oct 2005 08:31:41 +0100 (BST) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 3589415ED5; Fri, 7 Oct 2005 08:31:41 +0100 (BST) Message-ID: <4346245C.2040107@archonet.com> Date: Fri, 07 Oct 2005 08:31:40 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050912) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dave.bath@unix.net Cc: pgsql-sql@postgresql.org Subject: Re: RULES on SELECT with JDBC/perlDBI from other RDBMS products? References: <200510071107.38564.dave.bath@unix.net> In-Reply-To: <200510071107.38564.dave.bath@unix.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.057 required=5 tests=[AWL=0.007, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200510/70 X-Sequence-Number: 22923 Bath, David wrote: > Folks, > > I'm looking at using pg to be the main platform for integrating info > from other RDBMS products (particularly Oracle) as pg seems to be > the most flexible RDBMS around. > > Disregarding writing to foreign products, query-plan efficiencies, > or differences of SQL dialect, I'd like to have a way of setting > up a fairly-transparent SELECT within pg that pulls rows from the > other product. I wonder if anyone has attempted something like > this, and can recommend (or even deprecate) an approach, and perhaps > point to a code template. Are you familiar with the dblink() module in the contrib/ directory of the source distribution? -- Richard Huxton Archonet Ltd