From: Joe Conway <mail@joeconway.com>
To: David Griffiths <dgriffiths@boats.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Another weird one with an UPDATE
Date: Mon, 13 Oct 2003 08:04:27 -0700
Message-ID: <3F8ABEFB.4010107@joeconway.com> (raw)
In-Reply-To: <098a01c39152$3e231c20$6501a8c0@griffiths2>
References: <052001c39030$1ccc8020$6501a8c0@griffiths2>
<05a401c3903f$a8524850$6501a8c0@griffiths2>
<20031011153251.F57866@megazone.bigpanda.com>
<080d01c3912a$1356dea0$6501a8c0@griffiths2>
<3F8A01CE.2040003@joeconway.com>
<098a01c39152$3e231c20$6501a8c0@griffiths2>
David Griffiths wrote:
> Yes, the query operates only on indexed columns (all numeric(10)'s).
>
> Column | Type |
> Modifiers
> -------------------------------+-----------------------------+--------------
> ---------------
> user_account_id | numeric(10,0) | not null
> [snip]
> Indexes: user_account_pkey primary key btree (user_account_id),
> Foreign Key constraints: $1 FOREIGN KEY (lang_id) REFERENCES lang(lang_id)
> ON UPDATE NO ACTION ON DELETE NO ACTION,
> $2 FOREIGN KEY (source_id) REFERENCES
> source(source_id) ON UPDATE NO ACTION ON DELETE NO ACTION,
> $3 FOREIGN KEY (user_role_id) REFERENCES
> user_role(user_role_id) ON UPDATE NO ACTION ON DELETE NO ACTION
And what about commercial_entity.user_account_id. Is it indexed and what
is its data type (i.e. does it match numeric(10,0))?
Also, have you run VACUUM ANALYZE lately?
Joe
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: mail@joeconway.com, dgriffiths@boats.com
Subject: Re: Another weird one with an UPDATE
In-Reply-To: <3F8ABEFB.4010107@joeconway.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