Playing with pgcrypto - Mailing list pgsql-general

From howardnews@selestial.com
Subject Playing with pgcrypto
Date
Msg-id 21bd2e636ddba3214539cf26243d6708@selestial.com
Whole thread Raw
Responses Re: Playing with pgcrypto
List pgsql-general
Hi all,

I am trying out a few pgcrypto functions. I was expecting the final 
select statement to return the row I just inserted - Can anyone tell me 
what I am not understanding here?

create table test (p1 bytea);
insert into test (pgp_sym_encrypt('123', 'secret'));
select * from test where pgp_sym_encrypt('123', 'secret') = p1;

Thanks.

Howard



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Same query, same data different plan
Next
From: Erik Wienhold
Date:
Subject: Re: Playing with pgcrypto