Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 6E522C24695 for ; Fri, 30 Dec 2011 20:56:55 -0400 (AST) Received: from mail-iy0-f174.google.com ([209.85.210.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RgnFi-00046e-SU for pgsql-bugs@postgresql.org; Sat, 31 Dec 2011 00:56:54 +0000 Received: by iaeh11 with SMTP id h11so26058028iae.19 for ; Fri, 30 Dec 2011 16:56:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=9HPfqsrhhhBiHOjaLe5+LxHiSCWknmCNoxv/1QiABk4=; b=icmQyQLLNJYSs2TOEiK8JyzYRTzJ9iF2vU9RaThNWhZCWstMGarGTd5Z6+GwwVvLz0 kiJ6ExyIXR0KIcD5qfk7cd2v/Ewd6/1npfrIjx44PUhdUxLJSdVYs7F1xoJ6czcpbo2t C8nN+aY+NsYMGirTfwFOuVxUpICxo1CXS20a0= Received: by 10.50.156.130 with SMTP id we2mr48029756igb.10.1325292998266; Fri, 30 Dec 2011 16:56:38 -0800 (PST) Received: from [192.168.222.10] (c-71-229-225-89.hsd1.co.comcast.net. [71.229.225.89]) by mx.google.com with ESMTPS id b20sm133437454ibj.7.2011.12.30.16.56.36 (version=SSLv3 cipher=OTHER); Fri, 30 Dec 2011 16:56:37 -0800 (PST) Message-ID: <4EFE5DD1.2020600@gmail.com> Date: Fri, 30 Dec 2011 17:56:49 -0700 From: Dean Schulze User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Magnus Hagander CC: Alvaro Herrera , Pg Bugs Subject: Re: BUG #6363: pgp_sym_encrypt() broken between 8.4 and 9.1 References: <1325164357-sup-8785@alvh.no-ip.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201112/254 X-Sequence-Number: 32065 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 > 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