From: | Felix Kater <fkater(at)googlemail(dot)com> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: are foreign keys realized as indexes? |
Date: | 2007-05-08 12:34:29 |
Message-ID: | 20070508143429.d0728982.fkater@googlemail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, 8 May 2007 14:19:12 +0200
Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> > I like to keep my pg interface small: Can I replace foreign keys by
> > using indexes somehow?
>
> Not while preserving the semantics.
I am not bound to indexes, however, wonder if foreign keys itself are
non-atomic functionality. I mean: if foreign keys are based on some
other lower level functionality like indexes or anything else which I
could use as a substitute--in what way ever. Of course, I want to
gain the same (referential integrity etc.).
If foreign keys are, however, something unique which can't be replaced
by any other pg function (I am of course not taking into account things
like multiple queries bound together by transactions...) then I have to
go though it and implement it into my pg interface (looking at the
information_schema: This seems to be quite a bunch of work...).
Thank You
Felix
From | Date | Subject | |
---|---|---|---|
Next Message | Felix Kater | 2007-05-08 13:38:01 | pg_contraint: 'action code' ? |
Previous Message | Raymond O'Donnell | 2007-05-08 12:26:12 | Re: are foreign keys realized as indexes? |