Re: Where clause in pg_dump: need help

Поиск
Список
Период
Сортировка
От bricklen
Тема Re: Where clause in pg_dump: need help
Дата
Msg-id CAGrpgQ_WA20_or3Nw1Rw8h8jCczHnJyrevv7+tu7BbCoEbsaOQ@mail.gmail.com
обсуждение исходный текст
Ответ на Where clause in pg_dump: need help  (Prashanth Adiyodi <Prashantha@celltick.com>)
Ответы Re: Where clause in pg_dump: need help  (Prashanth Adiyodi <Prashantha@celltick.com>)
Список pgsql-bugs
On Thu, Jul 7, 2016 at 7:06 AM, Prashanth Adiyodi <Prashantha@celltick.com>
wrote:

> I am working on a script where I need to take backup of certain tables (o=
r
> a database) using the =E2=80=9C*date_trunc('day', NOW() - interval '1 mon=
th');*=E2=80=9D
> as a where clause.
>

As others have pointed out, pg_dump doesn't have a facility to apply
filters to the dump. However, there is a tool called pg_sample that allows
you to export subsets. https://github.com/mla/pg_sample

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

Предыдущее
От: Francisco Olarte
Дата:
Сообщение: Re: Where clause in pg_dump: need help
Следующее
От: Oskari Saarenmaa
Дата:
Сообщение: Re: BUG #14150: Attempted to delete invisible tuple