pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jean-Luc Lachance <jllachan@nsd.ca>
To: nickf@ontko.com
Cc: pgsql-performance@postgresql.org
Subject: Re: SELECT's take a long time compared to other DBMS
Date: Thu, 04 Sep 2003 11:01:13 -0400
Message-ID: <3F5753B9.F4A5A63F@nsd.ca> (raw)
References: <NEBBLAAHGLEEPCGOBHDGOEBKIDAA.nickf@ontko.com>

You forgot that the original poster's query was:
  SELECT * from <table>

This should require a simple table scan.  NO need for stats.
Either the table has not been properly vacuumed or he's got seq_scan
off...

JLL


Nick Fankhauser wrote:
> 
> > Yes I Analyze also, but there was no need to because it was a fresh brand
> > new database.
> 
> This apparently wasn't the source of problem since he did an analyze anyway,
> but my impression was that a fresh brand new database is exactly the
> situation where an analyze is needed- ie: a batch of data has just been
> loaded and stats haven't been collected yet.
> 
> Am I mistaken?
> 
> -Nick
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)



view thread (34+ messages)  latest in thread

Message-ID: <3F5753B9.F4A5A63F@nsd.ca>
Permalink:  ../3F5753B9.F4A5A63F@nsd.ca/
Also on:    postgresql.org/message-id/3F5753B9.F4A5A63F@nsd.ca

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: jllachan@nsd.ca, nickf@ontko.com
  Subject: Re: SELECT's take a long time compared to other DBMS
  In-Reply-To: <3F5753B9.F4A5A63F@nsd.ca>
  References: <NEBBLAAHGLEEPCGOBHDGOEBKIDAA.nickf@ontko.com> <3F5753B9.F4A5A63F@nsd.ca>

* 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