[Pkg-postgresql-public] Bug#859033: pg_dump: creates dumps that cannot be restored

Thorsten Glaser t.glaser at tarent.de
Fri Apr 7 18:10:13 UTC 2017

Hi *,

I’ve tried both setting the constraints temporarily to invalid (works)
and converting (painstakingly slow, as this is new for me) to triggers
(also works). Both can be dumped and restored.

I’ve also found out that I probably can ship the schema update that
converts the CHECK constraint to a trigger to the customer Right Now™
so I’ll fix this actual schema bug. I still find the CHECK constraint
to be a more natural way to express what I want, though.

I’m attaching the trigger conversion to help anyone else who does this
(and to invite feedback should there be anything I could improve).

tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testcase.sql
Type: application/x-sql
Size: 2665 bytes
URL: <http://lists.alioth.debian.org/pipermail/pkg-postgresql-public/attachments/20170407/54c8f375/attachment.sql>

More information about the Pkg-postgresql-public mailing list