Re: Modifying database schema without losing data

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Re: Modifying database schema without losing data
Дата
Msg-id alpine.LNX.2.20.2009281104090.31537@salmo.appl-ecosys.com
обсуждение исходный текст
Ответ на Re: Modifying database schema without losing data  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
On Mon, 28 Sep 2020, Adrian Klaver wrote:

> You could use INSERT INTO location(new_fields,) SELECT the_fields FROM
> the_table(s).

Well, duh! I could have thought of that. That's exactly what I'll do:

Create the new table, move data from the old table into it, then drop
columns in the old table ... after checking all data's there.

Thanks, Adrian.

Stay well,

Rich





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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Modifying database schema without losing data
Следующее
От: Reid Thompson
Дата:
Сообщение: Re: re PG 9.6x and found xmin from before relfrozenxid and removal of pg_internal.init file(s)