Re: Indexing foreign keys - Mailing list pgsql-performance

From Matt Mello
Subject Re: Indexing foreign keys
Date
Msg-id 3E359D06.5020408@spaceship.com
Whole thread Raw
In response to Indexing foreign keys  (Matt Mello <alien@spaceship.com>)
Responses Re: Indexing foreign keys  (Josh Berkus <josh@agliodbs.com>)
List pgsql-performance
Yes, I had not only done a "vacuum full analyze" on the PG db once I
stuffed it, but I also compared that with an IFX db that I had run
"update statistics high" on.  Things are much better with the FK indexes.

Did the docs say to index those FK fields (is that standard in the DB
industry?), or was I just spoiled by IFX doing it for me?  ;)

Thanks!



Chad Thompson wrote:
> Make sure that you've run a vacuum and an analyze.  There is also a
> performance hit if the types of the fields or values are different. ie int
> to int8

--
Matt Mello



pgsql-performance by date:

Previous
From: Matt Mello
Date:
Subject: Indexing foreign keys
Next
From: Bruce Momjian
Date:
Subject: Re: 7.3.1 New install, large queries are slow