pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sivapostgres@yahoo.com <sivapostgres@yahoo.com>
To: Ken Tanzer <ken.tanzer@gmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Cc: Ray O'Donnell <ray@rodonnell.ie>
Subject: Re: Copy & Re-copy of DB
Date: Fri, 22 Jan 2021 07:11:57 +0000 (UTC)
Message-ID: <132794689.1264279.1611299517588@mail.yahoo.com> (raw)
In-Reply-To: <CAD3a31ULW3QB17zyc_27F+J3DW9mgorOMo3Tgm+Xa1rc=1pPhg@mail.gmail.com>
References: <1776022013.3890342.1611234824367.ref@mail.yahoo.com>
	<1776022013.3890342.1611234824367@mail.yahoo.com>
	<00b51766-0fb1-6c6c-82c1-e08cf122e798@rodonnell.ie>
	<1829358841.3898628.1611237155653@mail.yahoo.com>
	<CAD3a31ULW3QB17zyc_27F+J3DW9mgorOMo3Tgm+Xa1rc=1pPhg@mail.gmail.com>

 So the solution to the issue will be
1.  Backup a DB using PGDUMP from 1st server.2.  Restore the DB in 2nd server.3.  Make required changes in the 2nd server.4.  Backup that DB using PGDUMP from 2nd server.5.  Delete / Rename that DB in the 1st server6.  Restore that DB in the 1st server.7.  Work again in the 1st server.
Is this the best way to carry out this process?
Happiness AlwaysBKR Sivaprakash

    On Friday, 22 January, 2021, 12:40:05 am IST, Ken Tanzer <ken.tanzer@gmail.com> wrote:  
 
 

On Thu, Jan 21, 2021 at 5:52 AM sivapostgres@yahoo.com <sivapostgres@yahoo.com> wrote:

 create database is to create a new database.  If we switch to new database, we need to change the new databasename in the program(s) that access this database.  

If you are just concerned about having the same database name, what about renaming (ALTER DATABASE ... RENAME TO) the old and/or new databases so they end up the way you want?
Cheers,
Ken
-- 
AGENCY Software  
A Free Software data systemBy and for non-profitshttp://agency-software.org/https://demo.agency-software.org/client
ken.tanzer@agency-software.org(253) 245-3801
Subscribe to the mailing list tolearn more about AGENCY orfollow the discussion.  

view thread (16+ messages)  latest in thread

Message-ID: <132794689.1264279.1611299517588@mail.yahoo.com>
Permalink:  ../132794689.1264279.1611299517588@mail.yahoo.com/
Also on:    postgresql.org/message-id/132794689.1264279.1611299517588@mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: sivapostgres@yahoo.com, ken.tanzer@gmail.com, ray@rodonnell.ie
  Subject: Re: Copy & Re-copy of DB
  In-Reply-To: <132794689.1264279.1611299517588@mail.yahoo.com>
  References: <1776022013.3890342.1611234824367.ref@mail.yahoo.com> <1776022013.3890342.1611234824367@mail.yahoo.com> <00b51766-0fb1-6c6c-82c1-e08cf122e798@rodonnell.ie> <1829358841.3898628.1611237155653@mail.yahoo.com> <CAD3a31ULW3QB17zyc_27F+J3DW9mgorOMo3Tgm+Xa1rc=1pPhg@mail.gmail.com> <132794689.1264279.1611299517588@mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox