Re: BUG #5126: convert_to preventing index scan - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5126: convert_to preventing index scan
Date
Msg-id 15927.1256253061@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #5126: convert_to preventing index scan  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
List pgsql-bugs
Andrew Gierth <andrew@tao11.riddles.org.uk> writes:
> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> writes:
>  Tom> Um ... locale *is* fixed within a given database, or at least
>  Tom> LC_COLLATE and LC_CTYPE are.  If you see cases where we have
>  Tom> this wrong, they may need to be revisited.

> The value of LC_CTYPE etc. is fixed, but the meaning that the OS
> assigns to that value can be changed (arguably more easily than
> changing pg_conversion, now that we don't allow builtin conversion
> funcs to be used for conversions other than the one they are coded
> for).

[ shrug... ]  So?  We have no way of detecting that.  By that logic,
float8pl isn't immutable because the hardware's FP behavior might
change under us.

My cutoff for this sort of issue is that if we provide a SQL command
to change something, we should expect that it will change.  Otherwise,
it's the user's responsibility to deal with the consequences of a change.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Andrew Gierth
Date:
Subject: Re: BUG #5126: convert_to preventing index scan
Next
From: Alvaro Herrera
Date:
Subject: Re: BUG #5021: ts_parse doesn't recognize email addresses with underscores