Re: Hosting without pgcrypto functions. There are other solutions?

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Andre Lopes <lopes80andre(at)gmail(dot)com>
Cc: postgresql Forums <pgsql-general(at)postgresql(dot)org>
Subject: Re: Hosting without pgcrypto functions. There are other solutions?
Date: 2010-06-14 13:20:56
Message-ID: AANLkTil5XV0Ys4b-umVogzO4MnMi5r1bGz0sTs7VUDJF@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Jun 13, 2010 at 4:37 PM, Andre Lopes <lopes80andre(at)gmail(dot)com> wrote:
> Hi,
>
> I have an account in A2Hosting.com, and I'm developing some functions that
> deal with encryption.
>
> A2Hosting.com don't have available the function "digest()"
>
> [code]
> ERROR:  function digest(unknown, unknown) does not exist
> LINE 1: select digest('ffff', 'sha1')

I bet the crypto library is built/installed -- you just need to
install the functions. Try this:
CREATE OR REPLACE FUNCTION digest(text, text)
AS '$libdir/pgcrypto', 'pg_digest'

If that fails then start thinking about plan 'B'.

merlin

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Smith 2010-06-14 13:24:59 Re: Advice on contingency plan for DAS array with separate local WAL drives
Previous Message Greg Smith 2010-06-14 13:19:14 Re: shared_buffer advice