RE: how to install pgcrypto

From: "Charles Clavadetscher" <clavadetscher(at)swisspug(dot)org>
To: "'Ze Victor Harry'" <assayabadi(at)gmail(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: RE: how to install pgcrypto
Date: 2018-08-03 09:21:53
Message-ID: 02dd01d42b0b$7126f480$5374dd80$@swisspug.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi

From: Ze Victor Harry [mailto:assayabadi(at)gmail(dot)com]
Sent: Freitag, 3. August 2018 10:54
To: pgsql-general(at)postgresql(dot)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

<https://stackoverflow.com/questions/45408745/when-i-give-ant-fresh-install-it-gives-error-postgresql-pgcrypto-extension-ins> 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 <http://commands.is/> commands.is it from cmd? or in pgadmin query tool? I need clearly articulated steps

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tim Clarke 2018-08-03 09:31:05 Re: how to install pgcrypto
Previous Message Ze Victor Harry 2018-08-03 08:53:43 how to install pgcrypto