Re: Index / Performance issues

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: Lucas Adamski <ladamski(at)breakwatersecurity(dot)com>, "Postgresql Performance Mailing list (E-mail)" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Index / Performance issues
Date: 2003-03-10 16:55:53
Message-ID: Pine.LNX.4.33.0303100954280.14220-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 7 Mar 2003, Greg Stark wrote:

>
>
> "scott.marlowe" <scott(dot)marlowe(at)ihs(dot)com> writes:
>
> > select * from table where 8bitintfield='123456789';
>
> Or:
>
> 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.

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Scott Buchan 2003-03-10 18:58:26 Large difference between elapsed time and run time for queries
Previous Message Bruce Momjian 2003-03-10 16:05:21 Re: OIDs as keys