Re: Foreign Keys - Mailing list pgsql-general

From Joe Conway
Subject Re: Foreign Keys
Date
Msg-id 3D910842.6000701@joeconway.com
Whole thread Raw
In response to Foreign Keys  ("Adam T. Gautier" <adam_gautier@yahoo.com>)
List pgsql-general
Adam T. Gautier wrote:
> UPDATE subjects SET parent_id = 1 WHERE id = 2;
>
> I thought that the way to fix the problem was with an index so I created
> various indexes nothing helped. any input would be great.

Have you run
   ANALYZE;
or
   VACUUM ANALYZE;
?

What does
   EXPLAIN ANALYZE UPDATE subjects SET parent_id = 1 WHERE id = 2;
say?

What indexes exactly have you created (definitions)?

Joe



pgsql-general by date:

Previous
From: Adahma
Date:
Subject: Error at startup
Next
From: Neil Conway
Date:
Subject: Re: Foreign Keys