Search Postgresql Archives

Re: Query in function not using index...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux