pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
triggers to foreign keys
2+ messages / 2 participants
[nested] [flat]

* triggers to foreign keys
@ 2003-06-12 13:12 Stef <svb@ucs.co.za>
  2003-06-12 13:48 ` Re: triggers to foreign keys Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Stef @ 2003-06-12 13:12 UTC (permalink / raw)
  To: pgsql-admin

If one has upgraded postgres from 7.1.2 to 7.3.1,
how does one convert all the triggers that represent
7.1.2 foreign keys to actual foreign keys.

What I really want to have, is that when I dump the new
upgraded database, that the tables will be dumped with the
original "foreign key" syntax as they were created initially on 
7.1.2, and not a bunch of triggers.

My problem is that programs like Visio don't see triggers
properly as entity relationships when drawing reverse engineered table
ERD's.

It works 100% when the table is created in 7.3.1 
with the appropriate foreign key syntax. 

Will appreciate any help




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: triggers to foreign keys
  2003-06-12 13:12 triggers to foreign keys Stef <svb@ucs.co.za>
@ 2003-06-12 13:48 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2003-06-12 13:48 UTC (permalink / raw)
  To: Stef <svb@ucs.co.za>; +Cc: pgsql-admin

Stef <svb@ucs.co.za> writes:
> If one has upgraded postgres from 7.1.2 to 7.3.1,
> how does one convert all the triggers that represent
> 7.1.2 foreign keys to actual foreign keys.

The contrib/adddepend module is supposed to help with this
(I've not used it myself though).

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-06-12 13:48 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-06-12 13:12 triggers to foreign keys Stef <svb@ucs.co.za>
2003-06-12 13:48 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox