Re: Index / Performance issues

From: Kevin Brown <kevin(at)sysexperts(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Index / Performance issues
Date: 2003-03-11 03:44:36
Message-ID: 20030311034436.GG1847@filer
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)sysexperts(dot)com

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Sean Chittenden 2003-03-11 04:11:33 Re: pgsql-server/ /configure /configure.in rc/incl ...
Previous Message Marc G. Fournier 2003-03-11 02:50:59 Re: pgsql-server/ /configure /configure.in rc/incl ...