Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install pgcrypto module on a postgres DB

I have Postgres version 10.5 from the docker hub and don't know how to install the pgcrypto module. In /usr/lib/postgresql/10/lib# there is a pgcrypto.so file. What to do with that file? I can't find documentation about it, thanks for your help!

like image 460
MWO Avatar asked Oct 03 '18 15:10

MWO


1 Answers

Using PSQL or PgAdmin, connect to the DB and type

CREATE EXTENSION IF NOT EXISTS pgcrypto;
like image 67
JGH Avatar answered Oct 30 '22 00:10

JGH