Re: change existing table definition

Поиск
Список
Период
Сортировка
От Martin Fandel
Тема Re: change existing table definition
Дата
Msg-id 1119989080.8406.10.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Re: change existing table definition  (Chuming Chen <chen@musc.edu>)
Список pgsql-admin
> pg_dump -c -t <table name> <database> > <dumpfile>
> psql <database> < <dumpfile>

I don't tested this but i think this works.

Be dangerous with the "-c" Option of dump ;). After
the dump was created, new data could be inserted into the
database. If you dump in the file, all dumped tables are
dropped. It's better to RENAME the existing table and then
COPY in the data.

greetings,

Martin


Am Dienstag, den 28.06.2005, 13:26 -0400 schrieb Chuming Chen:
> pgsql-admin@postgresql.org


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

Предыдущее
От: Chuming Chen
Дата:
Сообщение: Re: change existing table definition
Следующее
От: Ian FREISLICH
Дата:
Сообщение: Re: How to compare the schemas ?