RE: how to install pgcrypto - Mailing list pgsql-general

From Charles Clavadetscher
Subject RE: how to install pgcrypto
Date
Msg-id 02dd01d42b0b$7126f480$5374dd80$@swisspug.org
Whole thread Raw
In response to how to install pgcrypto  (Ze Victor Harry <assayabadi@gmail.com>)
List pgsql-general

Hi

 

From: Ze Victor Harry [mailto:assayabadi@gmail.com]
Sent: Freitag, 3. August 2018 10:54
To: pgsql-general@postgresql.org
Subject: how to install pgcrypto

 

hello again I have a small problem here can someone tell me briefly how to do it? I am getting this error 

When I give ant fresh_install it gives error PostgreSQL 'pgcrypto' extension installed /up to date? False (not installed) Create extension pgcrypto.

I have tried to look up for solutions and they all say I have to run a command 

# Login to your "dspace" database as a superuser

psql --username=postgres dspace

 

With this command on the linux shell your run psql, which is the PostgreSQL client that always is shipped with the server.

In the psql shell you can then run the create extension command as below.

You may do this in PgAdmin (a graphical UI for Windows), too.

 

The whole point is that you must first log into the database as a superuser before you install the extension.

 

Hope this helps.

Bye

Charles

 

# Enable the pgcrypto extension on this database

CREATE EXTENSION pgcrypto;

 but where I got confused is from where do I run these commands.is it from cmd? or in pgadmin query tool? I need clearly articulated  steps

 

pgsql-general by date:

Previous
From: Ze Victor Harry
Date:
Subject: how to install pgcrypto
Next
From: Tim Clarke
Date:
Subject: Re: how to install pgcrypto