pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PFC <lists@peufeu.com>
To: Richard Huxton <dev@archonet.com>
Cc: mark@mark.mielke.cc, "Mark Lewis" <mark.lewis@mir3.com>
Cc: James Mansion <james@mansionfamily.plus.com>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Alexander Staubo <alex@purefiction.net>
Cc: Andy <frum@ar-sd.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: LIKE search and performance
Date: Fri, 25 May 2007 19:31:16 +0200
Message-ID: <op.tsv8aefscigqcu@apollo13> (raw)
In-Reply-To: <46571825.30707@archonet.com>
References: <009501c79d4c$445428f0$0b00a8c0@mpsro.dom>
	<88daf38c0705230905u1a981102k691b47bd36011a80@mail.gmail.com>
	<4655DE75.4080506@mansionfamily.plus.com>
	<4655E64B.5050503@hagander.net>
	<4655FB8A.1040707@mansionfamily.plus.com>
	<1180040560.31471.262.camel@archimedes>
	<20070524215450.GA3858@mark.mielke.cc>
	<46569AA5.10205@archonet.com>
	<20070525141630.GA12162@mark.mielke.cc>
	<4657023A.20209@archonet.com>
	<op.tsv6fevgcigqcu@apollo13>
	<46571825.30707@archonet.com>

> None of which address the question of what plan PG should produce for:  
> SELECT * FROM bigtable WHERE foo LIKE 's%'

	Ah, this one already uses the btree since the '%' is at the end.
	My point is that a search like this will yield too many results to be  
useful to the user anyway, so optimizing its performance is a kind of red  
herring.




view thread (29+ messages)  latest in thread

Message-ID: <op.tsv8aefscigqcu@apollo13>
Permalink:  ../op.tsv8aefscigqcu@apollo13/
Also on:    postgresql.org/message-id/op.tsv8aefscigqcu@apollo13

 · 

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: lists@peufeu.com, dev@archonet.com, mark.lewis@mir3.com, james@mansionfamily.plus.com, magnus@hagander.net, alex@purefiction.net, frum@ar-sd.net
  Subject: Re: LIKE search and performance
  In-Reply-To: <op.tsv8aefscigqcu@apollo13>

* 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