Re: Copy & Re-copy of DB - Mailing list pgsql-general

From Ravi Krishna
Subject Re: Copy & Re-copy of DB
Date
Msg-id 0149A354-1E31-4364-B2A1-E4823D219C60@yahoo.com
Whole thread Raw
In response to Re: Copy & Re-copy of DB  ("sivapostgres@yahoo.com" <sivapostgres@yahoo.com>)
List pgsql-general
In SQLServer each db has its own data file and transaction log file and hence can be copied the way you described.

Limitation of Backup utility. Transfer to another server was done successfully. When we want to re-copy to original server,
>we have to delete the original db in the original server, create a new db, restore it.  Is that the only way ? 
> or any other elegant way available ? 

what do you mean "we have to delete the original db".  Did you mean the cluster as indicated in PGDATA dir.  Please note
that when you do that you lose other databases also within the same cluster.  If the cluster contains only one database then
you can simply overwrite PGDATA dir without creating a new db.




pgsql-general by date:

Previous
From: "sivapostgres@yahoo.com"
Date:
Subject: Re: Copy & Re-copy of DB
Next
From: Ray O'Donnell
Date:
Subject: Re: Copy & Re-copy of DB