Re: Storage of Foreign Keys - Mailing list pgsql-general

From Alan Hodgson
Subject Re: Storage of Foreign Keys
Date
Msg-id 200909211009.40811@hal.medialogik.com
Whole thread Raw
In response to Storage of Foreign Keys  (Christian Koetschan <c.koetschan@biozentrum.uni-wuerzburg.de>)
Responses Re: Storage of Foreign Keys
List pgsql-general
On Monday 21 September 2009, Christian Koetschan
<c.koetschan@biozentrum.uni-wuerzburg.de> wrote:
> Is everything I insert into mycolA and mycolB stored twice, or
> is there something like a pointer/reference from mycolA to the things
> stored in mycolB?
>

It's stored twice and for performance you need to index it in both tables.
If you put ON UPDATE CASCADE on it, an update to the master will hit both
tables though.

--
"No animals were harmed in the recording of this episode. We tried but that
damn monkey was just too fast."

pgsql-general by date:

Previous
From: Christian Koetschan
Date:
Subject: Storage of Foreign Keys
Next
From: Tom Duffey
Date:
Subject: VMWare file system / database corruption