pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Rudi Starcevic <rudi@oasis.net.au>
To: pgsql-sql@postgresql.org
Subject: Re: Analyze + Index
Date: Fri, 29 Nov 2002 10:32:26 +0000
Message-ID: <200211291032.26769.dev@archonet.com> (raw)
In-Reply-To: <3DE6F0D7.1060700@oasis.net.au>
References: <3DE6E741.3010406@oasis.net.au>
	<3DE6F0D7.1060700@oasis.net.au>

On Friday 29 Nov 2002 4:45 am, Rudi Starcevic wrote:
> Hi,
>
> I think I've found what I need to know.
>  From techdocs.postgresql.org
>
>  >> Every you run an INSERT, UPDATE, or DELETE on an indexed table,
>
> PostgreSQL must update all of the table's indexes to reflect the new
> data (unlike some
>
>  >> RDBMSs, PostgreSQL updates indexes immediately so they never get out
> of synch with the data).

Yep - the ANALYSE updates the statistics the planner uses. So - you should 
analyse when a noticable portion of your data has changed. If you had 3000 
users and batch inserted 1000 users you'd probably want to ANALYSE.

-- 
  Richard Huxton



view thread (3+ messages)

Message-ID: <200211291032.26769.dev@archonet.com>
Permalink:  ../200211291032.26769.dev@archonet.com/
Also on:    postgresql.org/message-id/200211291032.26769.dev@archonet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dev@archonet.com, rudi@oasis.net.au
  Subject: Re: Analyze + Index
  In-Reply-To: <200211291032.26769.dev@archonet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox