Re: Index / Performance issues

Поиск
Список
Период
Сортировка
От Kevin Brown
Тема Re: Index / Performance issues
Дата
Msg-id 20030311034436.GG1847@filer
обсуждение исходный текст
Ответ на Re: Index / Performance issues  ("scott.marlowe" <scott.marlowe@ihs.com>)
Список pgsql-performance
scott.marlowe wrote:
> > select * from table where 8bitintfield=123456789::int8
> >
> >
> > I'm not sure which is aesthetically more pleasing.
>
> The cast is self documenting, so it's probably a better choice for most
> setups.  On the other hand, it's not as likely to be portable.

May as well make it as portable as possible, though:

select * from table where 8bitintfield = CAST(123456789 AS bigint)



--
Kevin Brown                          kevin@sysexperts.com

В списке pgsql-performance по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Large difference between elapsed time and run time for queries
Следующее
От: Nikk Anderson
Дата:
Сообщение: Re: Large difference between elapsed time and run time