Re: Creating table in different database

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Paresh Bafna <paresh(at)it(dot)iitb(dot)ac(dot)in>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Creating table in different database
Date: 2005-10-25 15:44:26
Message-ID: 20051025154426.GA53568@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Oct 25, 2005 at 11:27:08AM +0530, Paresh Bafna wrote:
> If there are multiple databases, say db1 and db2.
> And currently we are in db1, can we create table in db2 (without
> switching databases)?

You could use contrib/dblink. However, if you need to do this often
then it might be better to use schemas instead of separate databases.

--
Michael Fuhr

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Claire McLister 2005-10-25 16:11:33 Re: Map of Postgresql Users (OT)
Previous Message Csaba Nagy 2005-10-25 15:24:58 Re: Deleting vs foreign keys