Re: Copy & Re-copy of DB

From: Ravi Krishna <srkrishna(at)yahoo(dot)com>
To: "sivapostgres(at)yahoo(dot)com" <sivapostgres(at)yahoo(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Copy & Re-copy of DB
Date: 2021-01-21 13:21:45
Message-ID: 0149A354-1E31-4364-B2A1-E4823D219C60@yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ray O'Donnell 2021-01-21 13:41:50 Re: Copy & Re-copy of DB
Previous Message sivapostgres@yahoo.com 2021-01-21 13:13:44 Re: Copy & Re-copy of DB