Teaching pg_dump to use NOT VALID constraints

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Teaching pg_dump to use NOT VALID constraints
Date: 2014-11-10 16:25:26
Message-ID: CA+U5nMLkRsR+fqhC7qzHprJ6FhNS0idPfpTieB-qzFYGdyYWug@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Magnus and I discussed the need for pg_dump to offer the use of NOT
VALID constraints.
Here's the patch.

pg_dump --no-revalidaton

will add "NOT VALID" onto the recreation SQL for any FKs, but only for
ones that were already known to be valid.

--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Attachment Content-Type Size
pg_dump_revalidation.v1.patch application/octet-stream 5.7 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2014-11-10 16:43:44 Re: SSL information view
Previous Message Robert Haas 2014-11-10 15:57:16 using custom scan nodes to prototype parallel sequential scan