Re: int8 primary keys still not using index without manual - Mailing list pgsql-general

From Tom Lane
Subject Re: int8 primary keys still not using index without manual
Date
Msg-id 29307.1068221123@sss.pgh.pa.us
Whole thread Raw
In response to Re: int8 primary keys still not using index without manual  (Tino Wildenhain <tino@wildenhain.de>)
Responses Re: int8 primary keys still not using index without manual  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-general
Tino Wildenhain <tino@wildenhain.de> writes:
> I agree with you wholeheartly - it also bothers me why
> postgresql can cast [0-9]+ to int4, but only
> '[0-9]+' to int8 or int2, I really cannot see the
> difference.

> Any ideas where we have to look for the place to patch?

Try reading the thousands of lines of discussion of this problem that
exist in the last several years of the pgsql-hackers archives.
Basically, we have found no solution that doesn't have side-effects
worse than what it fixes.  Here's one recent example of a possible
solution that crashed and burned on takeoff:
http://archives.postgresql.org/pgsql-hackers/2002-11/msg00468.php

            regards, tom lane

pgsql-general by date:

Previous
From: Barbara Lindsey
Date:
Subject: Re: error when creating rule
Next
From: "Edwin Quijada"
Date:
Subject: Service doesnt UP!!!!