Re: Copy & Re-copy of DB

From: Ken Tanzer <ken(dot)tanzer(at)gmail(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>, "Ray O'Donnell" <ray(at)rodonnell(dot)ie>
Subject: Re: Copy & Re-copy of DB
Date: 2021-01-21 19:09:13
Message-ID: CAD3a31ULW3QB17zyc_27F+J3DW9mgorOMo3Tgm+Xa1rc=1pPhg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Jan 21, 2021 at 5:52 AM sivapostgres(at)yahoo(dot)com <
sivapostgres(at)yahoo(dot)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 system
By and for non-profits
*http://agency-software.org/ <http://agency-software.org/>*
*https://demo.agency-software.org/client
<https://demo.agency-software.org/client>*
ken(dot)tanzer(at)agency-software(dot)org
(253) 245-3801

Subscribe to the mailing list
<agency-general-request(at)lists(dot)sourceforge(dot)net?body=subscribe> to
learn more about AGENCY or
follow the discussion.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tommy Li 2021-01-21 20:54:54 autovacuum verbose?
Previous Message Tom Lane 2021-01-21 18:41:29 Re: Error while running restore