22
0
Bifurcation 0

Procédure pour activer module `pgcrypto`

Cette révision appartient à :
abenmiloud 2020-06-30 09:28:04 +02:00
Parent b454ea4f74
révision 875b412331
1 fichiers modifiés avec 24 ajouts et 0 suppressions

Voir le fichier

@ -1295,3 +1295,27 @@ RemainAfterExit=on
[Install]
WantedBy=multi-user.target
~~~
### Activer module `pgcrypto`
Dans le *shell* `psql` :
~~~
hostname=# drop extension pgcrypto;
hostname=# create extension pgcrypto;
~~~
Pour vérifier :
~~~
hostname=# select pg_get_functiondef(to_regproc('gen_random_uuid'));
pg_get_functiondef
-----------------------------------------------------------
CREATE OR REPLACE FUNCTION public.gen_random_uuid() +
RETURNS uuid +
LANGUAGE c +
PARALLEL SAFE +
AS '$libdir/pgcrypto', $function$pg_random_uuid$function$+
(1 row)
~~~