pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Smet <guillaume.smet@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Gregory Stark <stark@enterprisedb.com>
Cc: pgsql-performance <pgsql-performance@postgresql.org>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] Estimation problem with a LIKE clause containing a /
Date: Fri, 9 Nov 2007 08:52:49 +0100
Message-ID: <1d4e0c10711082352h4bd08276j6c1156d77577ba48@mail.gmail.com> (raw)
In-Reply-To: <28300.1194574114@sss.pgh.pa.us>
References: <1d4e0c10711070453q214f089cpd144cbb5193d3c4f@mail.gmail.com>
	<17767.1194453292@sss.pgh.pa.us>
	<11467.1194477248@sss.pgh.pa.us>
	<1d4e0c10711080208n6c9875b4tf5882da3ced18532@mail.gmail.com>
	<27405.1194542548@sss.pgh.pa.us>
	<87prykpc3q.fsf@oxford.xeocode.com>
	<25287.1194568820@sss.pgh.pa.us>
	<28300.1194574114@sss.pgh.pa.us>

On Nov 9, 2007 3:08 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> This rule works for all the locales I have installed ... but I don't
> have any Far Eastern locales installed.  Also, my test cases are only
> covering ASCII characters, and I believe many locales have some non-ASCII
> letters that sort after 'Z'.  I'm not sure how hard we need to try to
> cover those corner cases, though.  It is ultimately only an estimate...

My opinion is that it's acceptable to fix the problem for most cases
in most locales because, as you said, it's only an estimate. We didn't
have any report of this problem for years so it seems that it's not a
common case or at least it's not common that the bad estimate leads to
noticeably bad plans.

As far as I understand what you plan to do, it doesn't seem to be
something that prevents us to fix the problem afterwards if someone
comes with an example which doesn't fit in the schema you're proposing
and has a real performance problem with it.

--
Guillaume



view thread (21+ messages)  latest in thread

Message-ID: <1d4e0c10711082352h4bd08276j6c1156d77577ba48@mail.gmail.com>
Permalink:  ../1d4e0c10711082352h4bd08276j6c1156d77577ba48@mail.gmail.com/
Also on:    postgresql.org/message-id/1d4e0c10711082352h4bd08276j6c1156d77577ba48@mail.gmail.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 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: guillaume.smet@gmail.com, tgl@sss.pgh.pa.us, stark@enterprisedb.com, pgsql-hackers@postgresql.org
  Subject: Re: [HACKERS] Estimation problem with a LIKE clause containing a /
  In-Reply-To: <1d4e0c10711082352h4bd08276j6c1156d77577ba48@mail.gmail.com>
  References: <1d4e0c10711070453q214f089cpd144cbb5193d3c4f@mail.gmail.com> <17767.1194453292@sss.pgh.pa.us> <11467.1194477248@sss.pgh.pa.us> <1d4e0c10711080208n6c9875b4tf5882da3ced18532@mail.gmail.com> <27405.1194542548@sss.pgh.pa.us> <87prykpc3q.fsf@oxford.xeocode.com> <25287.1194568820@sss.pgh.pa.us> <28300.1194574114@sss.pgh.pa.us> <1d4e0c10711082352h4bd08276j6c1156d77577ba48@mail.gmail.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