| From: | Joel Burton <jburton(at)scw(dot)org> | 
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> | 
| Cc: | Jan Wieck <JanWieck(at)yahoo(dot)com>, Philip Warner <pjw(at)rhyme(dot)com(dot)au>, pgsql-hackers(at)postgresql(dot)org | 
| Subject: | Re: Re: [BUG?] tgconstrrelid doesn't survive a dump/restore | 
| Date: | 2001-04-19 17:12:42 | 
| Message-ID: | Pine.LNX.4.21.0104191310340.13512-100000@olympus.scw.org | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers | 
On Thu, 19 Apr 2001, Tom Lane wrote:
> Jan Wieck <JanWieck(at)yahoo(dot)com> writes:
> >     IMHO  there's nothing fundamentally wrong with having pg_dump
> >     dumping the constraints as special triggers, because they are
> >     implemented  in  PostgreSQL  as  triggers. ...
> >     The advantage of having pg_dump output these  constraints  as
> >     proper  ALTER  TABLE  commands  would only be readability and
> >     easier portability (from PG to another RDBMS).
> 
> More to the point, it would allow easier porting to future Postgres
> releases that might implement constraints differently.  So I agree with
> Philip that it's important to have these constructs dumped symbolically
> wherever possible.
> 
> However, if that's not likely to happen right away, I think a quick hack
> to restore tgconstrrelid in the context of the existing approach would
> be a good idea.
A while ago, I wrote up a small tutorial example about using RI
w/Postgres. There wasn't much response to a RFC, but it might be helpful
for people trying to learn what's in pg_trigger. It includes a discussion
about how to disable RI, change an action, etc.
It's at
  
http://www.ca.postgresql.org/mhonarc/pgsql-docs/archive/pgsql-docs.200012
-- 
Joel Burton   <jburton(at)scw(dot)org>
Director of Information Systems, Support Center of Washington
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2001-04-19 18:23:56 | Re: idle processes in v7.1 ... not killable? | 
| Previous Message | Joel Burton | 2001-04-19 17:10:03 | Re: Re: [BUG?] tgconstrrelid doesn't survive a dump/restore |