pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Arthurs <tarthurs@jobflash.com>
To: smiley2211 <smiley2211@yahoo.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Database Statistics???
Date: Fri, 13 Jul 2007 10:39:19 -0700
Message-ID: <4697B8C7.7030304@jobflash.com> (raw)
In-Reply-To: <11583450.post@talk.nabble.com>
References: <11583450.post@talk.nabble.com>

smiley2211 wrote:
> Hello all,
>
> I am a bit confused...I have a database which was performing very POORLY
> selecting from a view (posted earlier) on one server but extremely fast on
> another server...
>
> I just backed up the database from the FAST server and loaded to the SLOW
> server and it ran just as fast as it originally did...my questions are:
>
> Are STATISTICS some how saved with the database??  if so, how do I UPDATE
> view or update them?
>
> Should I backup the data \ drop the database and reload it to make it get
> new stats?? (vacuum analyze does nothing for this poor performing database)
>
> Thanks-a-bunch.
>   
You can update statistics with the analyze or vacuum analyze command, 
but I'd bet what you are seeing here is the effect of recreating the 
indices that replaying a backup does.



view thread (6+ messages)  latest in thread

Message-ID: <4697B8C7.7030304@jobflash.com>
Permalink:  ../4697B8C7.7030304@jobflash.com/
Also on:    postgresql.org/message-id/4697B8C7.7030304@jobflash.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-performance@postgresql.org
  Cc: tarthurs@jobflash.com, smiley2211@yahoo.com
  Subject: Re: Database Statistics???
  In-Reply-To: <4697B8C7.7030304@jobflash.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