Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VTa9A-0008Ap-7g for pgsql-sql@arkaria.postgresql.org; Tue, 08 Oct 2013 16:28:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VTa99-0002Eh-37 for pgsql-sql@arkaria.postgresql.org; Tue, 08 Oct 2013 16:28:31 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VTa8u-0001u7-MZ for pgsql-sql@postgresql.org; Tue, 08 Oct 2013 16:28:16 +0000 Received: from mailout02.ims-firmen.de ([213.174.32.97]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VTa8q-0004rS-Og for pgsql-sql@postgresql.org; Tue, 08 Oct 2013 16:28:15 +0000 Received: from mailin04.ims-firmen.de ([192.168.1.144]) by mailout02.ims-firmen.de with esmtp (envelope-from ) id 1VTa8o-0006mX-lq for pgsql-sql@postgresql.org; Tue, 08 Oct 2013 18:28:10 +0200 Received: from [87.170.169.82] (helo=a-kretschmer.de) by mailin04.ims-firmen.de with esmtpsa (TLSv1:AES256-SHA:256) (envelope-from ) id 1VTa8o-0003Kq-Bg for pgsql-sql@postgresql.org; Tue, 08 Oct 2013 18:28:10 +0200 Received: from kretschmer by a-kretschmer.de with local (Exim 4.69) (envelope-from ) id 1VTa8n-0001zC-FY for pgsql-sql@postgresql.org; Tue, 08 Oct 2013 18:28:09 +0200 Date: Tue, 8 Oct 2013 18:28:09 +0200 From: Andreas Kretschmer To: pgsql-sql@postgresql.org Subject: Re: Message-ID: <20131008162809.GA7413@tux> References: <1381249389.79519.YahooMailNeo@web163904.mail.gq1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1381249389.79519.YahooMailNeo@web163904.mail.gq1.yahoo.com> X-OS: Debian/GNU Linux - weil ich es mir Wert bin! X-GPG-Fingerprint: EE16 3C01 7B9C 10F7 2C8B 3B86 4DB3 D9EE 7F45 84DA X-Message-Flag: "Windows" is not the answer. "Windows" is the question and the answer is "no"! X-Lugdd: Gerd Kube X-Info: My name is root. Just root. And I am licensed to kill -9 User-Agent: Mutt/1.5.18 (2008-05-17) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Kaleeswaran Velu wrote: > Hi Team, > I am using PostgreSQL 9.2.3 in Windows platform. I have created two databases > in it. Now I want to refer the tables across the databases. Meaning would like > to create Database link. Can anyone guide me on how to create a DB link? You can use db_link, see http://www.postgresql.org/docs/9.2/interactive/dblink.html. 9.3 contains more: http://www.postgresql.org/docs/9.3/interactive/postgres-fdw.html But in general: don't use different databases if you need a cross-database-connection. You can use Schemas instead: http://www.postgresql.org/docs/9.2/static/ddl-schemas.html Andreas -- Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect. (Linus Torvalds) "If I was god, I would recompile penguin with --enable-fly." (unknown) Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889° -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql