Re: Indexing foreign keys

From: Matt Mello <alien(at)spaceship(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Indexing foreign keys
Date: 2003-01-27 20:56:38
Message-ID: 3E359D06.5020408@spaceship.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chris Gamache 2003-01-27 21:04:15 Re: 7.3 LOCK TABLE problem
Previous Message Paul Grenda 2003-01-27 20:43:54 unsubscribe

Browse pgsql-performance by date

  From Date Subject
Next Message Bruce Momjian 2003-01-27 21:08:59 Re: 7.3.1 New install, large queries are slow
Previous Message Matt Mello 2003-01-27 20:39:57 Indexing foreign keys