Re: performance difference between pgsql and SQL

From: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>
To: Bill Shui <wshui(at)cse(dot)unsw(dot)edu(dot)au>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: performance difference between pgsql and SQL
Date: 2003-10-11 08:41:24
Message-ID: Pine.LNX.4.58.0310111839370.26212@linuxworld.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeroen T. Vermeulen 2003-10-11 12:36:25 Re: 2-phase commit
Previous Message Bill Shui 2003-10-11 07:17:13 performance difference between pgsql and SQL