pg_dump of only range of tables
pg_dump of only range of tables
От:
Robert James <srobertjames@gmail.com>
Дата:
Is there any way to do a pg_dump (or equivalent) of only part of a table? Say I want to send data to someone for only part of the table (expressable with a WHERE clause).
Re: pg_dump of only range of tables
От:
Szymon Guz <mabewlun@gmail.com>
Дата:
On 28 October 2013 22:27, Robert James <srobertjames@gmail.com> wrote:
Is there any way to do a pg_dump (or equivalent) of only part of a
table? Say I want to send data to someone for only part of the table
(expressable with a WHERE clause).
Hi,
you can use COPY or \COPY for that: http://www.postgresql.org/docs/9.3/static/sql-copy.html
regards,
Szymon
Re: pg_dump of only range of tables
От:
Adrian Klaver <adrian.klaver@gmail.com>
Дата:
On 10/28/2013 02:30 PM, Szymon Guz wrote: > > On 28 October 2013 22:27, Robert James > wrote: > > Is there any way to do a pg_dump (or equivalent) of only part of a > table? Say I want to send data to someone for only part of the table > (expressable with a WHERE clause). > > > > > Hi, > you can use COPY or \COPY for that: > http://www.postgresql.org/docs/9.3/static/sql-copy.html or use CREATE TABLE AS : www.postgresql.org/docs/9.3/interactive/sql-createtableas.html and dump the new table. > > regards, > Szymon > -- Adrian Klaver adrian.klaver@gmail.com