pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #6363: pgp_sym_encrypt() broken between 8.4 and 9.1
4+ messages / 4 participants
[nested] [flat]

* BUG #6363: pgp_sym_encrypt() broken between 8.4 and 9.1
@ 2011-12-28 23:21 dean.w.schulze@gmail.com
  2011-12-29 13:14 ` Re: BUG #6363: pgp_sym_encrypt() broken between 8.4 and 9.1 Alvaro Herrera <alvherre@commandprompt.com>
  0 siblings, 1 reply; 4+ messages in thread

From: dean.w.schulze@gmail.com @ 2011-12-28 23:21 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      6363
Logged by:          Dean Schulze
Email address:      dean.w.schulze@gmail.com
PostgreSQL version: 9.1.1
Operating system:   Windows 7 Pro 64-bit
Description:        

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
LINE 1: insert into credentials values('demo', pgp_sym_encrypt('pass...
                                               ^
HINT:  No function matches the given name and argument types. You might need
to add explicit type casts.

********** Error **********

ERROR: function pgp_sym_encrypt(unknown, unknown) does not exist
SQL state: 42883
Hint: No function matches the given name and argument types. You might need
to add explicit type casts.
Character: 40





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #6363: pgp_sym_encrypt() broken between 8.4 and 9.1
  2011-12-28 23:21 BUG #6363: pgp_sym_encrypt() broken between 8.4 and 9.1 dean.w.schulze@gmail.com
@ 2011-12-29 13:14 ` Alvaro Herrera <alvherre@commandprompt.com>
  2011-12-29 14:00   ` Re: BUG #6363: pgp_sym_encrypt() broken between 8.4 and 9.1 Magnus Hagander <magnus@hagander.net>
  0 siblings, 1 reply; 4+ messages in thread

From: Alvaro Herrera @ 2011-12-29 13:14 UTC (permalink / raw)
  To: dean.w.schulze <dean.w.schulze@gmail.com>; +Cc: pgsql-bugs


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

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #6363: pgp_sym_encrypt() broken between 8.4 and 9.1
  2011-12-28 23:21 BUG #6363: pgp_sym_encrypt() broken between 8.4 and 9.1 dean.w.schulze@gmail.com
  2011-12-29 13:14 ` Re: BUG #6363: pgp_sym_encrypt() broken between 8.4 and 9.1 Alvaro Herrera <alvherre@commandprompt.com>
@ 2011-12-29 14:00   ` Magnus Hagander <magnus@hagander.net>
  2011-12-31 00:56     ` Re: BUG #6363: pgp_sym_encrypt() broken between 8.4 and 9.1 Dean Schulze <dean.w.schulze@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Magnus Hagander @ 2011-12-29 14:00 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@commandprompt.com>; +Cc: dean.w.schulze <dean.w.schulze@gmail.com>; pgsql-bugs

On Thu, Dec 29, 2011 at 14:14, Alvaro Herrera
<alvherre@commandprompt.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/



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #6363: pgp_sym_encrypt() broken between 8.4 and 9.1
  2011-12-28 23:21 BUG #6363: pgp_sym_encrypt() broken between 8.4 and 9.1 dean.w.schulze@gmail.com
  2011-12-29 13:14 ` Re: BUG #6363: pgp_sym_encrypt() broken between 8.4 and 9.1 Alvaro Herrera <alvherre@commandprompt.com>
  2011-12-29 14:00   ` Re: BUG #6363: pgp_sym_encrypt() broken between 8.4 and 9.1 Magnus Hagander <magnus@hagander.net>
@ 2011-12-31 00:56     ` Dean Schulze <dean.w.schulze@gmail.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Dean Schulze @ 2011-12-31 00:56 UTC (permalink / raw)
  To: Magnus Hagander <magnus@hagander.net>; +Cc: Alvaro Herrera <alvherre@commandprompt.com>; pgsql-bugs


I've requested that this bug be closed.  What was happening was that I 
was adding pgcrypto to my database, but then deleting and adding the 
database.  Duh.  My bad.

On 12/29/2011 7:00 AM, Magnus Hagander wrote:
> On Thu, Dec 29, 2011 at 14:14, Alvaro Herrera
> <alvherre@commandprompt.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...
>


-- 
Dean
303.909.3245 cell




^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2011-12-31 00:56 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-12-28 23:21 BUG #6363: pgp_sym_encrypt() broken between 8.4 and 9.1 dean.w.schulze@gmail.com
2011-12-29 13:14 ` Alvaro Herrera <alvherre@commandprompt.com>
2011-12-29 14:00   ` Magnus Hagander <magnus@hagander.net>
2011-12-31 00:56     ` Dean Schulze <dean.w.schulze@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox