X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id D7FD99FB2CF for ; Mon, 14 Aug 2006 19:04:46 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 02430-09 for ; Mon, 14 Aug 2006 19:04:37 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by postgresql.org (Postfix) with ESMTP id 8AF1B9FB2C9 for ; Mon, 14 Aug 2006 19:04:37 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id n25so331639pyg for ; Mon, 14 Aug 2006 15:04:36 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=h3BpY4Ma5rxFKSyXM3dmgvkEWQbY6j11FPD7jIWp8T/+iQkCSDgBKal2rxklSxycXdbhG6Te1COa8FosOQT4FUzF7LJQzCIe/aOsgiJ0pTt3W1DEdJJoN9bVn1hKeU0zInmugqjR7fbgBEgDhw56bZAXoYC4gOvrhNno6USKsEY= Received: by 10.35.126.7 with SMTP id d7mr14215851pyn; Mon, 14 Aug 2006 15:04:36 -0700 (PDT) Received: by 10.35.61.12 with HTTP; Mon, 14 Aug 2006 15:04:35 -0700 (PDT) Message-ID: Date: Tue, 15 Aug 2006 03:04:35 +0500 From: "Shoaib Mir" To: "Sumeet Ambre" Subject: Re: Multiple DB join Cc: pgsql-sql@postgresql.org In-Reply-To: <44E0EA72.2090505@indiana.edu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_65202_22761955.1155593075945" References: <44E0EA72.2090505@indiana.edu> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.559 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, HTML_30_40, HTML_MESSAGE, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/99 X-Sequence-Number: 26057 ------=_Part_65202_22761955.1155593075945 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I think using the contrib module 'dblink' ( http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/dblink/) can help you here. Thanks, -- Shoaib Mir EnterpriseDB (www.enterprisedb.com) On 8/15/06, Sumeet Ambre wrote: > > Hi All, > > I have a database which consists of 20 million records and I've split up > the db into 6-7 dbs. I have a base database which consists of > the ids with link all the databases. I'm performing search on this > single base table. After searching i get some ids which are ids in the > other > databases which i split up. Now i need to retrieve those records. Is > there a way i can join tables from multiple databases as we can join > multiple tables > in a single database. > > Thanks, > SA. > > ---------------------------(end of broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster > ------=_Part_65202_22761955.1155593075945 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I think using the contrib module 'dblink' (http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/dblink/) can help you here.

Thanks,
--
Shoaib Mir
EnterpriseDB (www.enterprisedb.com)

On 8/15/06, Sumeet Ambre < sambre@indiana.edu> wrote:
Hi All,

I have a database which consists of 20 million records and I've split up
the db into 6-7 dbs. I have a base database which consists of
the ids with link all the databases. I'm performing search on this
single base table. After searching i get some ids which are ids in the other
databases which i split up. Now i need to retrieve those records. Is
there a way i can join tables from multiple databases as we can join
multiple tables
in a single database.

Thanks,
SA.

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster




------=_Part_65202_22761955.1155593075945--