X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id F3E8E3A5F19 for ; Thu, 27 Jan 2005 14:04:28 +0000 (GMT) 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 63373-05 for ; Thu, 27 Jan 2005 14:04:22 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.196]) by svr1.postgresql.org (Postfix) with ESMTP id AC1B13A5F18 for ; Thu, 27 Jan 2005 14:04:24 +0000 (GMT) Received: by rproxy.gmail.com with SMTP id z35so238476rne for ; Thu, 27 Jan 2005 06:04:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=gKacNZyXyMqqjrVkIB7aUgytnIHw1ugUvL4iAE7sy4Z74DGyj9LSIZYILhlzwTBUitemV1YBQs0iba6kMT13o3mO61WzEGfQDlaEPCMA9n39hFukHvWCr56Cqq8lgrlN84JczfGp7hyvxXs1Dx4Tipfohe93t/BstmiDVjYGZVk= Received: by 10.38.150.45 with SMTP id x45mr115075rnd; Thu, 27 Jan 2005 06:04:25 -0800 (PST) Received: by 10.38.163.47 with HTTP; Thu, 27 Jan 2005 06:04:25 -0800 (PST) Message-ID: <758d5e7f050127060446c4bdb5@mail.gmail.com> Date: Thu, 27 Jan 2005 15:04:25 +0100 From: Dawid Kuroczko Reply-To: Dawid Kuroczko To: Sandeep Gaikwad Subject: Re: Foreign Key relationship between two databases Cc: pgsql-sql@postgresql.org, pgsql-general@postgresql.org In-Reply-To: <41F8E9F8.6080304@vertex.co.in> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <41F8E9F8.6080304@vertex.co.in> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.55 tagged_above=0 required=5 tests=AWL, FROM_ENDS_IN_NUMS, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200501/1552 X-Sequence-Number: 72501 On Thu, 27 Jan 2005 18:47:44 +0530, Sandeep Gaikwad wrote: > Hi, > I am using postgres 7.3.4. I am new to postgres. > I can give foreign key relationship between two tables of same database. Can I give foreign key relationship between tables of two databases ? Plz, let me know if possible & send me how can I do that? Well... what you can do is replicate such table between two pg databases using Slony-I and then use foreign key on this replicated table. Regards, Dawid