SELECT gen_random_uuid()
produkuje dane wyjściowe
ERROR: function gen_random_uuid() does not exist
SQL state: 42883
Hint: No function matches the given name and argument types. You might need to add explicit type casts.
Uruchomiłem CREATE EXTENSION pgcrypto;wybraną bazę danych i SELECT gen_random_bytes(1)działa idealnie ( gen_random_bytesnie działa na innych bazach danych, w których pgcryptorozszerzenie nie zostało utworzone ręcznie).
% psql --version
psql (PostgreSQL) 9.5.3
Wersja Ubuntu to 16.04.
to_regprocnie istnieje albo:ERROR: function to_regproc(unknown) does not exist.