From: Kevin Brown <kevin@sysexperts.com>
To: pgsql-performance@postgresql.org
Subject: Re: Index / Performance issues
Date: Mon, 10 Mar 2003 19:44:36 -0800
Message-ID: <20030311034436.GG1847@filer> (raw)
In-Reply-To: <Pine.LNX.4.33.0303100954280.14220-100000@css120.ihs.com>
References: <877kbalgz6.fsf@stark.dyndns.tv>
<Pine.LNX.4.33.0303100954280.14220-100000@css120.ihs.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: kevin@sysexperts.com
Subject: Re: Index / Performance issues
In-Reply-To: <20030311034436.GG1847@filer>
References: <877kbalgz6.fsf@stark.dyndns.tv> <Pine.LNX.4.33.0303100954280.14220-100000@css120.ihs.com> <20030311034436.GG1847@filer>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox