Re: Optimizer failure on update w/integer column

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: nolan(at)celery(dot)tssi(dot)com
Cc: pgsql-general(at)postgresql(dot)org (pgsql general list)
Subject: Re: Optimizer failure on update w/integer column
Date: 2003-06-15 22:30:08
Message-ID: 11980.1055716208@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

nolan(at)celery(dot)tssi(dot)com writes:
> Is there a documented problem with optimizing integer key fields
> in 7.3.3?

I see nothing particularly wrong with that query plan.

> When I try to do an update, it takes several hours.

That seems excessive for a 700K-row update, but I doubt that the query
plan is the problem. I'm betting there's a lot of per-update overhead
due to triggers or foreign keys. What have you got in that line? Do
you have indexes on both sides of any foreign-key relationships that
missing_ids participates in?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Oleg Bartunov 2003-06-15 22:34:01 Re: [HACKERS] UTF8 and KOI8 mini-howto
Previous Message Ernest E Vogelsinger 2003-06-15 22:13:45 RE : full featured alter table?