"Robert 'BoBsoN' Partyka" <bobson(at)bobson(dot)pl> writes:
> In construction "... ind = case ..." automagic conversion from text to
> integer is not done anymore in 8.3.* - you must cast it manually.
> Is this bug or feature? (for me it looks like bug).
It's intentional.
> If this is feature then I think it should be documented in manual and
> probably in some migration documentation.
See the first item under the 8.3 migration caveats:
"Non-character data types are no longer automatically cast to TEXT"
http://www.postgresql.org/docs/8.3/static/release-8-3.html
regards, tom lane