Re: Index / Performance issues - Mailing list pgsql-performance

From Kevin Brown
Subject Re: Index / Performance issues
Date
Msg-id 20030311034436.GG1847@filer
Whole thread Raw
In response to Re: Index / Performance issues  ("scott.marlowe" <scott.marlowe@ihs.com>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Large difference between elapsed time and run time for queries
Next
From: Nikk Anderson
Date:
Subject: Re: Large difference between elapsed time and run time