Re: Add --include-table-data-where option to pg_dump, to export only a subset of table data

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Carter Thaxton <carter(dot)thaxton(at)gmail(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Surafel Temesgen <surafel3000(at)gmail(dot)com>, Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>, Euler Taveira <euler(at)timbira(dot)com(dot)br>, Stephen Frost <sfrost(at)snowman(dot)net>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add --include-table-data-where option to pg_dump, to export only a subset of table data
Date: 2018-07-03 01:50:36
Message-ID: 20180703015036.GG2159@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Jul 02, 2018 at 03:11:46PM -0700, Carter Thaxton wrote:
> Also, there may be some misunderstanding about "foo:bar" above. That's an
> example of using a namespaced table, where "bar" is a table in the
> namespace "foo". Normally, assuming your table is named "bar" in the
> default namespace, you would just say something like:
>
> pg_dump --where "bar:created_at >= 2018-05-01'"

I am wondering how this works at parsing if the table name, or one of
the columns includes a colon character :)
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2018-07-03 01:54:39 Re: Protect syscache from bloating with negative cache entries
Previous Message Michael Paquier 2018-07-03 01:30:48 Re: Old small commitfest items