AW: [HACKERS] create index updates nrows statistics

Поиск
Список
Период
Сортировка
От ZEUGSWETTER Andreas IZ5
Тема AW: [HACKERS] create index updates nrows statistics
Дата
Msg-id 219F68D65015D011A8E000006F8590C60267B379@sdexcsrv1.f000.d0188.sd.spardat.at
обсуждение исходный текст
Ответы Re: AW: [HACKERS] create index updates nrows statistics  (jwieck@debis.com (Jan Wieck))
Re: AW: [HACKERS] create index updates nrows statistics  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> > a create index updates the statistics in pg_class,
> > this leads to substantial performance degradation compared to
> > 6.4.2.
> 
> Create index did that in 6.4.2 as well --- how could it be making
> performance worse?
> 
I am not sure why, but in 6.4.2 a create table, create index, insert,
select * from tab where indexedcol=5 did actually use the index path,
even if table reltuples and relpages was 0.
It currently uses a seq scan, which is exactly what we wanted to avoid 
in the newly created table case, but do want on an actually small table.

Please apply the patch I previously sent.

Andreas


В списке pgsql-hackers по дате отправления:

Предыдущее
От: ZEUGSWETTER Andreas IZ5
Дата:
Сообщение: Re: [HACKERS] strange behavior of UPDATE
Следующее
От: jwieck@debis.com (Jan Wieck)
Дата:
Сообщение: Re: AW: [HACKERS] create index updates nrows statistics