pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bill Chandler <billybobc1210@yahoo.com>
Cc: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Cc: pgsql-perform@postgresql.org
Subject: Re: [PERFORM] Cursors performance
Date: Tue, 13 Jul 2004 13:08:57 -0400
Message-ID: <16994.1089738537@sss.pgh.pa.us> (raw)
In-Reply-To: <20040713161346.62000.qmail@web51404.mail.yahoo.com>
References: <20040713161346.62000.qmail@web51404.mail.yahoo.com>

Bill Chandler <billybobc1210@yahoo.com> writes:
> One final clue before I go: if I change my wildcard to
> 'NEPOOL%' from 'NEPOOL%REAL%' my query completes much
> faster.

Could we see the exact queries and EXPLAIN ANALYZE output for both
cases?  I'm wondering if the plan changes.  I think that the planner
will believe that the latter pattern is significantly more selective
(how much more selective depends on exactly which PG version you're
using); if this results in a bad row-count estimate then a bad plan
could get picked.

			regards, tom lane



view thread (7+ messages)

Message-ID: <16994.1089738537@sss.pgh.pa.us>
Permalink:  ../16994.1089738537@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16994.1089738537@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, billybobc1210@yahoo.com, books@ejurka.com, pgsql-jdbc@postgresql.org, pgsql-perform@postgresql.org
  Subject: Re: [PERFORM] Cursors performance
  In-Reply-To: <16994.1089738537@sss.pgh.pa.us>

* 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