Re: General Question about database -- redirection

Поиск
Список
Период
Сортировка
От Jorge Godoy
Тема Re: General Question about database -- redirection
Дата
Msg-id w2x175c742d1004151749j805f0565r166ab161499756d2@mail.gmail.com
обсуждение исходный текст
Ответ на General Question about database -- redirection  (akp geek <akpgeek@gmail.com>)
Ответы Re: General Question about database -- redirection  (akp geek <akpgeek@gmail.com>)
Список pgsql-general
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@gmail.com>


On Thu, Apr 15, 2010 at 14:49, akp geek <akpgeek@gmail.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


В списке pgsql-general по дате отправления:

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: pl/java status
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: Inserting multiple values, was Re: solaris tarballs and pl/java