pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gezeala 'Eyah' Bacuño II <gezeala25@yahoo.com>
To: pgsql-php@postgresql.org
Subject: How To Connect to another Database inside a plpgsql function
Date: Fri, 13 Feb 2004 08:56:55 +0000 (GMT)
Message-ID: <20040213085655.67695.qmail@web41408.mail.yahoo.com> (raw)

Hi Guys!
 
I have 2 database namely "DB1" and "DB2".
 
In DB1 I created a plgpsql function fnTest().
 
My problem is inside fnTest() I need to check some tables in DB2! I've no idea how to do this. Usually when I make a function I only access tables/views/functions in the same database. I really don't know if this is possible.
 
BTW, I googled my problem but did not see any topics on this.
 
Need your expertise on this one guys...TIA!



Marie Gezeala M. Bacuño II 
IS Department
Muramoto Audio-Visual Phils., Inc.
MEPZ1, Lapu-Lapu City, Cebu, Philippines 6015


The person with the ultimate cachinnation possesses, thereby, the optimal cachinnation.




---------------------------------
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now

view thread (3+ messages)  latest in thread

Message-ID: <20040213085655.67695.qmail@web41408.mail.yahoo.com>
Permalink:  ../20040213085655.67695.qmail@web41408.mail.yahoo.com/
Also on:    postgresql.org/message-id/20040213085655.67695.qmail@web41408.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: gezeala25@yahoo.com
  Subject: Re: How To Connect to another Database inside a plpgsql function
  In-Reply-To: <20040213085655.67695.qmail@web41408.mail.yahoo.com>
  References: <20040213085655.67695.qmail@web41408.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox