pg_dump

Поиск
Список
Период
Сортировка
От Adam Lang
Тема pg_dump
Дата
Msg-id 013f01c011e3$32ff1480$330a0a0a@Adam
обсуждение исходный текст
Ответ на SQL scripts - sequences  ("Adam Lang" <aalang@rutgersinsurance.com>)
Список pgsql-general
Also, is pg_dump good for backing up a database or should I use another
means? (I did read the part about partial indices and large objects not
supported.)

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
----- Original Message -----
From: "Brook Milligan" <brook@biology.nmsu.edu>
To: <aalang@rutgersinsurance.com>
Cc: <pgsql-general@postgresql.org>
Sent: Tuesday, August 29, 2000 12:28 PM
Subject: Re: [GENERAL] SQL scripts - sequences


> My solution in a similar situation is to have a bunch of scripts to
> drop/create the tables/functions/views/triggers/... needed.  Use
> pg_dump to dump just the data (not the schema) but include the -c flag
> (I use -a -c -D) so that sequences are dropped and recreated with the
> right values.  To reload:  run pg_dump -a -c -D, run your scripts
> (which drop and recreate the data structures, then run your pg_dump
> output through psql to reload the data.  Sequences and tables will
> agree fine.
>
> Cheers,
> Brook


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

Предыдущее
От: mikeo
Дата:
Сообщение: Re: foreign keys - script
Следующее
От: "funk101"
Дата:
Сообщение: lo_import