Re: Dump & Load a database???

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Dump & Load a database???
Дата
Msg-id 46CAB713.EE98.0025.0@wicourts.gov
обсуждение исходный текст
Ответ на Dump & Load a database???  (smiley2211 <smiley2211@yahoo.com>)
Ответы Re: Dump & Load a database???  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Список pgsql-admin
>>> On Tue, Aug 21, 2007 at  9:50 AM, in message <12256258.post@talk.nabble.com>,
smiley2211 <smiley2211@yahoo.com> wrote:

> Do I have to DROP \ recreate and load the target database (this is what I
> currently do)?  is there a way to just do an IN PLACE load like in other
> RDBMS environments???
>
> pg_dump proddb | gzip > proddb_082107.sql.gz
>
> gunzip < proddb_082107.sql.gz | psql -d testdb -f -

You might want to consider using one or both of these pg_dump options:

  -c, --clean                 clean (drop) schema prior to create
  -C, --create                include commands to create database in dump




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

Предыдущее
От: "Chris Hoover"
Дата:
Сообщение: How to export query results
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: how to call sql code without function