From: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-general@lists.postgresql.org
Subject: Updating data: confirmation and question
Date: Sat, 26 Oct 2019 08:38:31 -0700 (PDT)
Message-ID: <alpine.LNX.2.20.1910260831280.28605@salmo.appl-ecosys.com> (raw)
Before my old server died I ran pg_dumpall on the database there and copied
that to my new server. The old database was postgresql-10 and the new one is
postgresql-11.5.
Am I correct that I can run 'pgsql -f <filename>.sql' and overwrite the
existing databases with the newer data?
Checking the database names in both I see that I mistakenly used hyphens
rather than underscores in one database name. I can change that in the .sql
file but have not before learned how/whether I can change a database name
using psql. What's the best approach to changing the existing hypephenated
name?
TIA,
Rich
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: rshepard@appl-ecosys.com
Subject: Re: Updating data: confirmation and question
In-Reply-To: <alpine.LNX.2.20.1910260831280.28605@salmo.appl-ecosys.com>
References: <alpine.LNX.2.20.1910260831280.28605@salmo.appl-ecosys.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