Re: Dumping partial database content

Поиск
Список
Период
Сортировка
От mike g
Тема Re: Dumping partial database content
Дата
Msg-id 1088741432.23457.30.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Dumping partial database content  (h_harush@hotmail.com)
Список pgsql-admin
I don't believe there is an option in pg_dump that current handles
that.  It is the whole table / object or nothing at all.  Depending on
the volume of transactions and frequency that you need to dump the data
will determine which solution works best for you.

Heavy volume and/or dumps multiple times per hour:  Replication would
probably be the best solution-perhaps Slony.

Occasionaly or small volume:  A Perl script / cron job that executes a
SELECT * FROM x WHERE date > $passed parameter when calling the script.

One time:  Use pgadminIII or psql to execute a SELECT query and direct
the results into a file.

Mike
On Wed, 2004-06-30 at 07:07, h_harush@hotmail.com wrote:
> Hi,
>
> I need to dump only partial content of my database, for example i want
> to dump only records that has been insterted to the database from a
> specific date.
> I tried to use pg_dump/pg_export but did not find anything usefull.
>
> I'm using postgres version 7.3 on Linux RH 7.3
>
> any idea/direction ?
>
> Regards,
> Hanan
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

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

Предыдущее
От: mike g
Дата:
Сообщение: Re: recovery from server crash
Следующее
От: Oliver Elphick
Дата:
Сообщение: Re: Postgres IDENT auth problems...