Re: How to use index in WHERE int = float - Mailing list pgsql-general

From Andrus
Subject Re: How to use index in WHERE int = float
Date
Msg-id get5hp$1o7e$1@news.hub.org
Whole thread Raw
In response to Re: How to use index in WHERE int = float  (Sam Mason <sam@samason.me.uk>)
Responses Re: How to use index in WHERE int = float
List pgsql-general
> PG 8.3 would
> even throw it out, unless dokumnr was explicitly cast to a float8 as
> well.

I tried in 8.3

create temp table dok ( dokumnr serial primary key );
select * from dok where dokumnr='1'::float8

and this run without error.

So i do'nt understand how 8.3 throws out.

Andrus.


pgsql-general by date:

Previous
From: Sam Mason
Date:
Subject: Re: How to use index in WHERE int = float
Next
From: "Scott Marlowe"
Date:
Subject: Re: Storage location of temporary files