thiemo <thiemo(at)gmx(dot)ch> writes:
> WHERE usr =3D CURRENT_USER
> but the following error is returned.
> ERROR: Unable to identify an operator '=3D' for types 'character varying'=
> =20
> and 'name'. You will have to retype this query using an explicit cast.
Hmm... probably there should be an implicit conversion from NAME to TEXT
.. but in the meantime try
WHERE usr = CURRENT_USER::varchar
regards, tom lane