X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D33573A42DC for ; Wed, 5 Jan 2005 18:50:26 +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 22190-03 for ; Wed, 5 Jan 2005 18:50:08 +0000 (GMT) Received: by svr1.postgresql.org (Postfix, from userid 1001) id 957A23A5068; Wed, 5 Jan 2005 18:17:32 +0000 (GMT) Received: from md1.psixpress.com (md1.psixpress.com [154.32.105.205]) by svr1.postgresql.org (Postfix) with ESMTP id 0B50A3A4E75 for ; Wed, 5 Jan 2005 16:47:31 +0000 (GMT) Received: from kaufbach.delug.de (242.pool1.dialup.cybernet-ag.de [195.143.124.242]) by md1.psixpress.com (MOS 3.5.6-GR) with ESMTP id CIX30738 (AUTH via LOGINBEFORESMTP); Wed, 5 Jan 2005 16:34:31 GMT Received: from kretschmer by kaufbach.delug.de with local (Exim 3.35 #1) id 1CmE1V-0001p2-00 for pgsql-sql@postgresql.org; Wed, 05 Jan 2005 17:28:37 +0100 Date: Wed, 5 Jan 2005 17:28:37 +0100 From: Kretschmer Andreas To: pgsql-sql@postgresql.org Subject: Re: Calling a table residing in another database from Plpgsql Message-ID: <20050105162837.GA6967@kaufbach.delug.de> References: <43146.61.11.66.222.1104902026.squirrel@61.11.66.222> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <43146.61.11.66.222.1104902026.squirrel@61.11.66.222> User-Agent: Mutt/1.3.28i 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 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.055 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200501/18 X-Sequence-Number: 19806 am Tue, dem 04.01.2005, um 21:13:46 -0800 mailte deepthi@granwill.com folgendes: > Hi, > > I have function called test1() in database 1. I need to input the value > from this function into another table which is in database2. > > How can i achieve this task in plpgsql. I went through some documentation > and found out that it is possible through dblink. > > I infact downloaded the dblink package in contrib folder. But still when i > tried to use dblink in the following manner: You must run the dblink.sql, not only download. Regards, Andreas -- Diese Message wurde erstellt mit freundlicher Unterstützung eines freilau- fenden Pinguins aus artgerechter Freilandhaltung. Er ist garantiert frei von Micro$oft'schen Viren. (#97922 http://counter.li.org) GPG 7F4584DA Was, Sie wissen nicht, wo Kaufbach ist? Hier: N 51.05082°, E 13.56889° ;-)