| От | Tom Lane |
|---|---|
| Тема | Re: Index not being used ? |
| Дата | |
| Msg-id | 7217.1062646036@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Index not being used ? (Ron Johnson <ron.l.johnson@cox.net>) |
| Ответы |
Re: Index not being used ?
|
| Список | pgsql-general |
Ron Johnson <ron.l.johnson@cox.net> writes:
> Quotes and casting together are not necessary.
Check.
> I'd choose "lid = 457::int2" since it's telling PG what the datatype
> is, whereas with lid = '457', PG must figure it out.
I'd lean to the quotes, actually, since that way your application's
code isn't so dependent on the particular datatypes in the table.
I doubt there's any performance advantage to writing the cast, if
that's what you were thinking ...
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера