Re: BUG #6363: pgp_sym_encrypt() broken between 8.4 and 9.1

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: "dean(dot)w(dot)schulze" <dean(dot)w(dot)schulze(at)gmail(dot)com>, Pg Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #6363: pgp_sym_encrypt() broken between 8.4 and 9.1
Date: 2011-12-29 14:00:27
Message-ID: CABUevExGq+s=tf+3Ro+GveSkE7bo7AxZVKzSwirR1PHN+M8K3g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, Dec 29, 2011 at 14:14, Alvaro Herrera
<alvherre(at)commandprompt(dot)com> wrote:
>
> Excerpts from dean.w.schulze's message of mié dic 28 20:21:08 -0300 2011:
>
>> The following worked in 8.4, but fails in 9.1.  (pgpcrypto is installed.)
>>
>> In 9.1 it looks like it doesn't recognize strings.
>>
>> insert into credentials values('demo', pgp_sym_encrypt('password',
>> 'longpassword'));
>>
>>
>> ERROR:  function pgp_sym_encrypt(unknown, unknown) does not exist
>
> It works fine for me here.  Is pgp_sym_encrypt listed in this output?
>
> \dx+ pgcrypto

My guess is that the OP has installed the extension in one database
(maybe "postgres") and tries to use it in another. That's a really
easy mistake to make...

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message havasvolgyi.otto 2011-12-29 19:52:20 BUG #6365: Memory leak in insert and update
Previous Message Alvaro Herrera 2011-12-29 13:14:22 Re: BUG #6363: pgp_sym_encrypt() broken between 8.4 and 9.1