On clients server I had a problem - I did not have permissions to create extension pgcrypto. So server admin did it for me, and now I can see in pg_available_extensions that pgcrypto is installed (1.1), however its functions are not available for me:
=> select gen_random_uuid();
ERROR: function gen_random_uuid() does not exist
LINE 1: select gen_random_uuid();
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
Also I don't have permissions to drop extension (which might be a clue what's wrong?):
=> drop extension pgcrypto;
ERROR: must be owner of extension pgcrypto
Any idea what's wrong and why I can't see pgcrypto functions? Something with permissions?
USAGEon the schema, for instance. – Daniel Vérité Nov 03 '17 at 17:05