Playing with pgcrypto

From: howardnews(at)selestial(dot)com
To: Pgsql General <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Playing with pgcrypto
Date: 2022-10-10 22:25:20
Message-ID: 21bd2e636ddba3214539cf26243d6708@selestial.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Erik Wienhold 2022-10-10 22:52:27 Re: Playing with pgcrypto
Previous Message Adrian Klaver 2022-10-10 17:59:12 Re: Same query, same data different plan