pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: scott.marlowe <scott.marlowe@ihs.com>
To: Achilleus Mantzios <achill@matrix.gatewaynet.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: An unresolved performance problem.
Date: Wed, 7 May 2003 09:42:27 -0600 (MDT)
Message-ID: <Pine.LNX.4.33.0305070940260.8765-100000@css120.ihs.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0305071359180.27590-100000@matrix.gatewaynet.com>

On Wed, 7 May 2003, Achilleus Mantzios wrote:

> 
> Hi, few days ago, i posted some really wierd (at least to me)
> situation (maybe a potentian bug) to the performance and bugs list
> and to some core hacker(s) privately as well,
> and i got no response.
> Moreover i asked for some feedback
> in order to understand/fix the problem myself,
> and again received no response.
> 
> What i asked was pretty simple:
> "1. Is it possible that the absense of statistics make the planer produce 
> better plans
> than in the case of statistcs generated with vacuum 
> analyze/analyze?

One of the common examples of this happening was posted a few weeks back.  
someone was basically doing this:

delete from table;
analyze table;
insert into table (1,000,000 times);

the problem was that the table had fk constraints to another table, and 
the query planner for the inserts (all 1,000,000 of them) assumed it was 
inserting into a mostly empty table, and therefore used seq scans instead 
of index scans.

It's not a bug, not quite a feature, just a corner case.




view thread (20+ messages)  latest in thread

Message-ID: <Pine.LNX.4.33.0305070940260.8765-100000@css120.ihs.com>
Permalink:  ../Pine.LNX.4.33.0305070940260.8765-100000@css120.ihs.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.33.0305070940260.8765-100000@css120.ihs.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: scott.marlowe@ihs.com, achill@matrix.gatewaynet.com, pgsql-performance@postgresql.org
  Subject: Re: An unresolved performance problem.
  In-Reply-To: <Pine.LNX.4.33.0305070940260.8765-100000@css120.ihs.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