Re: Change the current database programatically

From: greg(at)turnstep(dot)com
To: pgsql-novice(at)postgresql(dot)org
Cc: gsmiscel(at)hotmail(dot)com
Subject: Re: Change the current database programatically
Date: 2003-02-18 15:12:45
Message-ID: 471ae7fb0d81c2b716433309d00e71bf@biglumber.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Is there any way to change the current database programatically?
> ...
> So, is there anyway (at pl/pgsql level) to do that?

The short answer is "no". The databases are fairly well separated:
this is considered a Good Thing. What you want to use is schemas,
which are now available in version 7.3. This would be a great reason
to upgrade to 7.3.2 if you are not there already.

You also may want to look at "dblink" in the contrib directory,
which is probably the closest to what you want without using schemas.

- --
Greg Sabino Mullane greg(at)turnstep(dot)com
PGP Key: 0x14964AC8 200302181006

-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html

iD8DBQE+UkwZvJuQZxSWSsgRAtTuAJ9EbjhKITx7uU1p789bEA9NWgjNBQCdGoW/
XjyB42rn32fqsrJXhgZqHVY=
=bICC
-----END PGP SIGNATURE-----

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Steve_Miller 2003-02-18 15:51:27 Re: Multiple Return Values?
Previous Message Bruno Wolff III 2003-02-18 14:18:21 Re: Granting permission for users to create users...