Search Postgresql Archives

Re: General Question about database -- redirection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you

On Thu, Apr 15, 2010 at 8:49 PM, Jorge Godoy <jgodoy@xxxxxxxxx> 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@xxxxxxxxx>



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




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux