Re: Best pg_dump practices

Поиск
Список
Период
Сортировка
От Dmitri Bichko
Тема Re: Best pg_dump practices
Дата
Msg-id 7A4ADADFC8AFF0478D47F63BEDD57CE30CDFA4@gpmail.gphq.genpathpharma.com
обсуждение исходный текст
Ответ на Best pg_dump practices  (MT <m_tessier@sympatico.ca>)
Ответы Re: Best pg_dump practices
Список pgsql-general
> pg_dump -c -f dumpfile.sql dbname

> This will give me the data in its original, pristine form. Note that
using pg_dump this way means that the data gets
> dumped as copy too. Is there a way to dump only the db objects (ie.
tables, sequences, etc) and exclude the data.

The -s (--schema-only) flag dumps only the schema, not the data... At
least according to pg_dump --help

Dmitri

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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: [HACKERS] SAP and MySQL ... [and Benchmark]
Следующее
От: Ernest E Vogelsinger
Дата:
Сообщение: Query planner question