Re: performance difference between pgsql and SQL - Mailing list pgsql-hackers

From Gavin Sherry
Subject Re: performance difference between pgsql and SQL
Date
Msg-id Pine.LNX.4.58.0310111839370.26212@linuxworld.com.au
Whole thread Raw
In response to performance difference between pgsql and SQL  (Bill Shui <wshui@cse.unsw.edu.au>)
List pgsql-hackers
On Sat, 11 Oct 2003, Bill Shui wrote:

> Hi,
>
> I am using postgreSQL 7.3.4
>
> I have a single table in the databasse.
>
> mytable(id, tag, parent, label)
> all in int8.
>
> hash index is built for id and btree index for all attributes.
>

Hash indexes  are generally a bad idea in 7.3.

> select tag from mytable where id = 1;

Try: select tag from mytable where id = 1::int8;

This is a known flaw of the typing system which the community has been
discussing/attempting to fix for some time.

Gavin


pgsql-hackers by date:

Previous
From: Bill Shui
Date:
Subject: performance difference between pgsql and SQL
Next
From: "Jeroen T. Vermeulen"
Date:
Subject: Re: 2-phase commit