Re: [HACKERS] strange behavior of UPDATE - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] strange behavior of UPDATE
Date
Msg-id 12718.927725952@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] strange behavior of UPDATE  (ZEUGSWETTER Andreas IZ5 <Andreas.Zeugswetter@telecom.at>)
List pgsql-hackers
ZEUGSWETTER Andreas IZ5 <Andreas.Zeugswetter@telecom.at> writes:
> can you run an: explain update bench set k500k = k500k + 1 where k100 = 30;
> I suspect it is doing a seq scan.

No, that's not it:

test=> explain update bench set k500k = k500k + 1 where k100 = 30;
NOTICE:  QUERY PLAN:

Index Scan using k100 on bench  (cost=179.05 rows=2082 width=154)


The benchmark loads the tables first and then builds indexes, and
in fact does a vacuum analyze after that!  So the stats should be fine.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Horak Daniel
Date:
Subject: report for Win32 port
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] strange behavior of UPDATE