Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oi1DF-0004lB-9c for pgsql-general@arkaria.postgresql.org; Mon, 10 Oct 2022 22:25:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oi1DD-0004aq-Ki for pgsql-general@arkaria.postgresql.org; Mon, 10 Oct 2022 22:25:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oi1DD-0004ah-2r for pgsql-general@lists.postgresql.org; Mon, 10 Oct 2022 22:25:27 +0000 Received: from mail-falcon.ukwebsolutionsdirect.com ([193.189.75.23]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oi1D8-0002Fx-C1 for pgsql-general@lists.postgresql.org; Mon, 10 Oct 2022 22:25:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=selestial.com; s=default; h=Content-Transfer-Encoding:Content-Type: Message-ID:Subject:To:From:Date:MIME-Version:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=VslWJLvI5MSPO+SFxY0buH4QuiixUgCGAPFOmOVt8es=; b=Va0Mxt8bA6MWtcCqo2anICZrDv IdoEMWVulwTHGFOa1eN/miyVAcVWt7zwM8xQwU4apc1A4JlTeYHl+WaEs9r1OnC4IWY8VKXo9/AYz jeRwuYz71nu8abHp25OekEGB8n2Ax2w6zmUaJxMT8KtpeweMUNZcFoAq/CCbc7SczM2IK9CKtBBcy TKy9bPwjuwC0DFyYZKVR6FSMjviD1XeMB8QfDcrqOvbLhrFvrRGeO4/FozZaXB1QKxWJhaTvGxMoc T4VYVASbDA2Obzdc4lmS0p+HUzIq+o9mP2CRXOv3eAE4BgrNU69wHQddT9l08oRWzaMd9t7SmxSUb NNA+uEgg==; Received: from [::1] (port=43436 helo=falcon.ukwebsolutionsdirect.com) by falcon.ukwebsolutionsdirect.com with esmtpa (Exim 4.95) (envelope-from ) id 1oi1D7-004NPm-00 for pgsql-general@lists.postgresql.org; Mon, 10 Oct 2022 23:25:21 +0100 MIME-Version: 1.0 Date: Mon, 10 Oct 2022 23:25:20 +0100 From: howardnews@selestial.com To: Pgsql General Subject: Playing with pgcrypto User-Agent: Roundcube Webmail/1.5.2 Message-ID: <21bd2e636ddba3214539cf26243d6708@selestial.com> X-Sender: howardnews@selestial.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - falcon.ukwebsolutionsdirect.com X-AntiAbuse: Original Domain - lists.postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - selestial.com X-Get-Message-Sender-Via: falcon.ukwebsolutionsdirect.com: authenticated_id: howardnews@selestial.com X-Authenticated-Sender: falcon.ukwebsolutionsdirect.com: howardnews@selestial.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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