My database has implicit cast from integer to text, so I’m getting some ‘operator is not unique’ issues. I’m trying to delete the operator || (text, anynonarray) with no success, the error message is
ERROR: cannot drop operator ||(text,anynonarray) because it is required by the database system
SQL state: 2BP01
I have another database that doesn’t have this operator, so I think is possible somehow. I cannot add explicit casts in hundreds of queries, neither remove the implicit casts. There’s a way to force the remotion of this operator?
Seems I got it. The trick is to delete right from the pg_operator table.
Because I wanted to delete these operators:
I don’t know if there are any implications though, seems ok till now.