we are using a PostgreSQL version 15 and have added 13 conversions from this blog entry: http://petereisentraut.blogspot.com/2008/03/readding-implicit-casts-in-postgresql.html
However, only now we have the problem when we want to join a string e.g. with a number:
SELECT 'Test: '||123.45 FROM TEST
The SQL returns the error here:
ERROR: operator is not unique: unknown || integer
If we remove the conversion "double percision --> text", the SQL works. However, we need the conversions elsewhere.
We actually want to avoid using CAST()
, ::VARCHAR
or ::TEXT
, as this affects a large number of queries.
Does anyone have any ideas on how we can solve the problem?