| From: | Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com> |
|---|---|
| To: | Szymon Guz <mabewlun(at)gmail(dot)com>, Robert James <srobertjames(at)gmail(dot)com> |
| Cc: | Postgres General <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: pg_dump of only range of tables |
| Date: | 2013-10-28 22:01:18 |
| Message-ID: | 526EDEAE.3090803@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 10/28/2013 02:30 PM, Szymon Guz wrote:
>
> On 28 October 2013 22:27, Robert James <srobertjames(at)gmail(dot)com
> <mailto:srobertjames(at)gmail(dot)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
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(dot)klaver(at)gmail(dot)com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Adrian Klaver | 2013-10-28 22:21:31 | Re: Cursor Example Needed |
| Previous Message | Szymon Guz | 2013-10-28 21:30:58 | Re: pg_dump of only range of tables |