Re: General Question about database -- redirection

From: akp geek <akpgeek(at)gmail(dot)com>
To: Jorge Godoy <jgodoy(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: General Question about database -- redirection
Date: 2010-04-16 01:59:54
Message-ID: w2v2024a9fb1004151859g6a45744enb6ad46435ca7938@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thank you

On Thu, Apr 15, 2010 at 8:49 PM, Jorge Godoy <jgodoy(at)gmail(dot)com> wrote:

> create database db_1 template db_2;
>
> This will create a new DB_1 using DB_2 as template. Otherwise, you'll
> change your code to connect to DB_2 instead of connecting to DB_1.
>
> --
> Jorge Godoy <jgodoy(at)gmail(dot)com>
>
>
>
> On Thu, Apr 15, 2010 at 14:49, akp geek <akpgeek(at)gmail(dot)com> wrote:
>
>> dear all -
>>
>> I am not supposed to ask this. But, the question is I have 2
>> databases DB_1 and DB_2. I have a script that loads few tables in DB_1. The
>> 2 databases are identical. In case , if database DB_1 is dropped, Is there
>> any command that I can issue to use the DB_2?
>>
>>
>> Regards
>>
>>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message zhong ming wu 2010-04-16 02:22:06 readline library not found
Previous Message Scott Marlowe 2010-04-16 01:34:10 Re: Inserting multiple values, was Re: solaris tarballs and pl/java