pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedRe: [SQL] Foreign Keys, Triggers and such
2+ messages / 2 participants
[nested] [flat]
* Re: [SQL] Foreign Keys, Triggers and such
@ 2000-01-19 15:40 Marc Tardif <admin@wtbwts.com>
parent: Daniel Spratlen <spratlen@arches.uga.edu>
0 siblings, 0 replies; 2+ messages in thread
From: Marc Tardif @ 2000-01-19 15:40 UTC (permalink / raw)
To: Daniel Spratlen <spratlen@arches.uga.edu>; +Cc: pgsql-sql
There is the source code and explanation in the postgresql tarball:
contrib/spi/refint.*
I think referential integrity will be implemented soon as part of the
distribution. It is still at a project level, but you can read about it
here: http://www.postgresql.org/projects/devel-refint.html
On Wed, 19 Jan 2000, Daniel Spratlen wrote:
> I am a MIS student at the University of Georgia. I am doing a project
> for my Systems Analysis and Design class, and I am using PostgreSQL for
> the Database. I have taken a data management class and we always used
> foreign keys. I used a win32 program written by Power Soft called Data
> Architect. I used the PostgreSQL odbc drivers to interface with the
> linux box with the database on it. The reason I am writing all this, is
> that it created all the tables, indexes, and sequences just fine, but it
> skipped over the foreign keys. I understand that a trigger can be used
> instead of a foreign key, and I have read an explanation for this reason
> at
> http://www.mysql.org/Manual_chapter/manual_Compatibility.html#Missing_Foreign_Keys
>
> I was wondering if this is the same reason that PostgreSQL doesn't use
> foreign keys, and I was wondering exactly how to use the triggers
> instead of the foreign keys. Sorry for a long story in my message.
> Thanks in advance for the help.
> Daniel Spratlen
> spratlen@arches.uga.edu
>
>
> ************
>
>
^ permalink raw reply [nested|flat] 2+ messages in thread
* Foreign Keys, Triggers and such
@ 2000-01-19 19:16 Daniel Spratlen <spratlen@arches.uga.edu>
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Spratlen @ 2000-01-19 19:16 UTC (permalink / raw)
To: pgsql-sql
I am a MIS student at the University of Georgia. I am doing a project
for my Systems Analysis and Design class, and I am using PostgreSQL for
the Database. I have taken a data management class and we always used
foreign keys. I used a win32 program written by Power Soft called Data
Architect. I used the PostgreSQL odbc drivers to interface with the
linux box with the database on it. The reason I am writing all this, is
that it created all the tables, indexes, and sequences just fine, but it
skipped over the foreign keys. I understand that a trigger can be used
instead of a foreign key, and I have read an explanation for this reason
at
http://www.mysql.org/Manual_chapter/manual_Compatibility.html#Missing_Foreign_Keys
I was wondering if this is the same reason that PostgreSQL doesn't use
foreign keys, and I was wondering exactly how to use the triggers
instead of the foreign keys. Sorry for a long story in my message.
Thanks in advance for the help.
Daniel Spratlen
spratlen@arches.uga.edu
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2000-01-19 19:16 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-01-19 19:16 Foreign Keys, Triggers and such Daniel Spratlen <spratlen@arches.uga.edu>
2000-01-19 15:40 ` Marc Tardif <admin@wtbwts.com>
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