Re: [BUG?] tgconstrrelid doesn't survive a dump/restore - Mailing list pgsql-hackers

From Philip Warner
Subject Re: [BUG?] tgconstrrelid doesn't survive a dump/restore
Date
Msg-id 3.0.5.32.20010419122915.02b38510@mail.rhyme.com.au
Whole thread Raw
In response to Re: [BUG?] tgconstrrelid doesn't survive a dump/restore  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
At 16:30 18/04/01 -0400, Tom Lane wrote:
>
>IIRC, pg_dump is just failing to transfer the value; it needs to emit
>an additional clause in the CREATE CONSTRAINT command to do so.
>

From memory, this is one of the non-standard SQL things that pg_dump still
does (ie. definining the constraint using rule definitions). I'll see if I
can find a way of constructing the FK constraint properly, but don't hold
your breath.


----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 0500 83 82 82         |                 ___________ |
Http://www.rhyme.com.au          |                /           \|                                |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [BUG] views and functions on relations
Next
From: Philip Warner
Date:
Subject: Re: Re: [BUG?] tgconstrrelid doesn't survive a dump/restore