Updating data: confirmation and question

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Updating data: confirmation and question
Дата
Msg-id alpine.LNX.2.20.1910260831280.28605@salmo.appl-ecosys.com
обсуждение исходный текст
Ответы Re: Updating data: confirmation and question  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
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




В списке pgsql-general по дате отправления:

Предыдущее
От: George Neuner
Дата:
Сообщение: Re: Composite type storage overhead
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Updating data: confirmation and question