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 21:57:27 +0100
Message-ID: <1d4e0c10711091257w401c95f4s5f63ae32daecd14e@mail.gmail.com> (raw)
In-Reply-To: <11342.1194626025@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>
	<87hcjvpydn.fsf@oxford.xeocode.com>
	<11342.1194626025@sss.pgh.pa.us>

Tom,

Just to confirm you that your last commit fixed the problem:

lbo=# explain analyze select * from cms_items where ancestors LIKE '1062/%';
                                                  QUERY PLAN
---------------------------------------------------------------------------------------------------------------
 Seq Scan on cms_items  (cost=0.00..688.26 rows=*9097* width=103)
(actual time=0.011..22.605 rows=11326 loops=1)
   Filter: ((ancestors)::text ~~ '1062/%'::text)
 Total runtime: 30.022 ms
(3 rows)

Thanks for your time.

--
Guillaume



view thread (21+ messages)

Message-ID: <1d4e0c10711091257w401c95f4s5f63ae32daecd14e@mail.gmail.com>
Permalink:  ../1d4e0c10711091257w401c95f4s5f63ae32daecd14e@mail.gmail.com/
Also on:    postgresql.org/message-id/1d4e0c10711091257w401c95f4s5f63ae32daecd14e@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 using the --to and --cc options:
  reply via email

  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: <1d4e0c10711091257w401c95f4s5f63ae32daecd14e@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