Re: SELECT's take a long time compared to other DBMS

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: nickf(at)ontko(dot)com
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: SELECT's take a long time compared to other DBMS
Date: 2003-09-04 05:03:08
Message-ID: 14159.1062651788@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"Nick Fankhauser" <nickf(at)ontko(dot)com> writes:
> 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.

Indeed. But as someone else already pointed out, a seqscan is the only
reasonable plan for an unqualified "SELECT whatever FROM table" query;
lack of stats wouldn't deter the planner from arriving at that
conclusion.

My guess is that the OP is failing to account for some client-side
inefficiency in absorbing a large query result.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Hannu Krosing 2003-09-04 06:55:27 Re: PostgreSQL Reliability when fsync = false on
Previous Message Nick Fankhauser 2003-09-04 04:43:45 Re: SELECT's take a long time compared to other DBMS