X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 662E3475B8E for ; Mon, 14 Apr 2003 11:42:28 -0400 (EDT) Received: from serwer.skawsoft.com.pl (serwer.skawsoft.com.pl [213.25.37.66]) by postgresql.org (Postfix) with ESMTP id 4071C475B8E for ; Mon, 14 Apr 2003 11:41:57 -0400 (EDT) Received: from klaster.net (ph139.krakow.cvx.ppp.tpnet.pl [217.99.208.139]) by serwer.skawsoft.com.pl (Postfix) with ESMTP id B66CC2B3CF; Mon, 14 Apr 2003 17:42:28 +0200 (CEST) Message-ID: <3E9AD77D.6020904@klaster.net> Date: Mon, 14 Apr 2003 17:45:01 +0200 From: Tomasz Myrta User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; pl-PL; rv:1.3) Gecko/20030312 X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: friedrich nietzsche Cc: pgsql-sql@postgresql.org Subject: Re: connecting to a differnt DB in PL/pgSQL References: <20030414152903.32560.qmail@web40502.mail.yahoo.com> In-Reply-To: <20030414152903.32560.qmail@web40502.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, hits=-22.6 required=5.0 tests=BAYES_01,IN_REP_TO,REFERENCES,USER_AGENT_MOZILLA_UA autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/207 X-Sequence-Number: 12908 Uz.ytkownik friedrich nietzsche napisa?: > Hi all, > Is it possible to connect to another database within a > PL/PgSQL function? >=20 > I'm in a function on the "A" database and I need to > retrieve some information from a table in a different > Database "B" >=20 > may someone help me? >=20 > thanks, Danilo. > bye. You can't access another database even inside 1 server directly. Find something about contrib/dblink - maybe it will help you. Regards, Tomasz Myrta