Re: Deleting vs foreign keys - Mailing list pgsql-general

From WireSpot
Subject Re: Deleting vs foreign keys
Date
Msg-id b2d4b0380510250218w758e7d21rcca840b8fa348ce0@mail.gmail.com
Whole thread Raw
In response to Re: Deleting vs foreign keys  (Michael Fuhr <mike@fuhr.org>)
Responses Re: Deleting vs foreign keys  (Martijn van Oosterhout <kleptog@svana.org>)
Re: Deleting vs foreign keys  (Csaba Nagy <nagy@ecircle-ag.com>)
List pgsql-general
On 10/25/05, Michael Fuhr <mike@fuhr.org> wrote:
> Are there indexes on the foreign key columns?  That is, given
> the following example,
>
> CREATE TABLE foo (id integer PRIMARY KEY);
> CREATE TABLE bar (fooid integer NOT NULL REFERENCES foo ON DELETE CASCADE);
>
> do you have an index on bar.fooid?

There are no indexes on the referring fields in any tables. Would this
make a huge difference?

> Also, do you regularly vacuum and analyze the database?

Yes.

pgsql-general by date:

Previous
From: Oliver Elphick
Date:
Subject: Re: function DECODE and triggers
Next
From: Oliver Elphick
Date:
Subject: Re: pl/pgsql help