From: David B <postgresql@thegatelys.com>
To: pgsql-sql@postgresql.org
Subject: Faster performance when using where cust_id = '123' vs cust_id = 123. Does 7.4 fix this??
Date: Tue, 9 Dec 2003 13:35:24 -0800
Message-ID: <GOEGKICPFOPNLIEIHGFJGEJMCEAA.postgresql@thegatelys.com> (raw)
We have got used to the problem that queries of the format:
select *
from customer
where cust_id = '123' are much much faster than
select *
from customer
where cust_id = 123
(where cust_id is defined as bigint).
a. Why is this.
b. Will moving to v7.4 change this so we can avoid the whole '123' casting
thing.
Tx folks,
D
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: postgresql@thegatelys.com
Subject: Re: Faster performance when using where cust_id = '123' vs cust_id = 123. Does 7.4 fix this??
In-Reply-To: <GOEGKICPFOPNLIEIHGFJGEJMCEAA.postgresql@thegatelys.com>
* 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