ANALYZE and indexes (was Re: Sort time)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Josh Berkus" <josh(at)agliodbs(dot)com>
Cc: pginfo <pginfo(at)t1(dot)unisoftbg(dot)com>, "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: ANALYZE and indexes (was Re: Sort time)
Date: 2002-11-15 23:02:15
Message-ID: 2523.1037401335@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"Josh Berkus" <josh(at)agliodbs(dot)com> writes:
> ... don't forget to VACUUM ANALYZE after you index ...

People keep saying that, but it's a myth. ANALYZE doesn't care what
indexes are present; adding or deleting an index doesn't invalidate
previous ANALYZE results.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2002-11-15 23:32:53 Re: Sort time
Previous Message Rod Taylor 2002-11-15 22:40:19 Re: Sort time