Re: Sequential scan where Index scan expected (update)

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Sequential scan where Index scan expected (update)
Date: 2006-03-03 12:47:12
Message-ID: 20060303124712.GC7057@phlogiston.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thu, Mar 02, 2006 at 11:28:49PM -0800, Bryce Nesbitt wrote:
> Can anyone help figure out why?

Well. . .

>
>
> demo=# \d xx_thing
^^^^^^^^

> -------------------------+-----------------------------+-----------
> thing_id | bigint | not null
^^^^^^

> demo=# explain update xx_thing_event set thing_color='foo' where
^^^^^^^^^^^^^^
. . .you haven't actually given us the right schema here, but if I
had to guess, I'd say you could put this

> thing_event_id=10000;
^^^^^

in quotes. The automatic int4-int8 coercion is probably your
problem. Also

> ----------------------------------------------------------------------------------------------------------
> PostgreSQL 7.4.1 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2.3
^^^^^

you need to upgrade PostgreSQL Right Now. There are serious problems
with earlier 7.4 releases. Get the latest, or risk data corruption.

A

--
Andrew Sullivan | ajs(at)crankycanuck(dot)ca
When my information changes, I alter my conclusions. What do you do sir?
--attr. John Maynard Keynes

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2006-03-03 14:53:47 Re: Physical column size
Previous Message Karsten Hilbert 2006-03-03 12:46:42 Re: newbie question