Re: Query in function not using index...

From: Listmail <lists(at)peufeu(dot)com>
To: "John Cole" <john(dot)cole(at)uai(dot)com>, "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Query in function not using index...
Date: 2007-04-27 20:00:16
Message-ID: op.trgkiqmuzcizji@apollo13
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Any idea why using a variable v_streetName instead of a string 'wynn%'
> behaves differently?

Yeah.
'wynn%' doesn't start with % so LIKE uses index.
But Postgres doesn't know that you know that the contents of this
variable never starts with '%'...

>
> Thanks,
>
> John
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Russ Brown 2007-04-27 20:15:11 Re: Preferred Installation/Data Directories
Previous Message Rich Shepard 2007-04-27 19:39:41 Re: Preferred Installation/Data Directories