From: Matt Mello <alien@spaceship.com>
To: pgsql-performance@postgresql.org
Subject: Re: Indexing foreign keys
Date: Mon, 27 Jan 2003 14:56:38 -0600
Message-ID: <3E359D06.5020408@spaceship.com> (raw)
In-Reply-To: <030201c2c644$e14cfcb0$32021aac@chad>
References: <3E35991D.5050704@spaceship.com>
<030201c2c644$e14cfcb0$32021aac@chad>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: alien@spaceship.com
Subject: Re: Indexing foreign keys
In-Reply-To: <3E359D06.5020408@spaceship.com>
References: <3E35991D.5050704@spaceship.com> <030201c2c644$e14cfcb0$32021aac@chad> <3E359D06.5020408@spaceship.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox