Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUzMA-0000r2-7W for pgsql-admin@arkaria.postgresql.org; Wed, 03 Aug 2016 16:49:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bUzM9-0006Lo-QW for pgsql-admin@arkaria.postgresql.org; Wed, 03 Aug 2016 16:49:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bUzKS-0003VU-7D for pgsql-admin@postgresql.org; Wed, 03 Aug 2016 16:47:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bUzKP-0007R8-Ip for pgsql-admin@postgresql.org; Wed, 03 Aug 2016 16:47:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u73GlV29028359; Wed, 3 Aug 2016 12:47:31 -0400 From: Tom Lane To: John Scalia cc: "pgsql-admin@postgresql.org" Subject: Re: Proper syntax to update an hstore key-value pair In-reply-to: References: <22859.1470234864@sss.pgh.pa.us> Comments: In-reply-to John Scalia message dated "Wed, 03 Aug 2016 10:19:29 -0500" Date: Wed, 03 Aug 2016 12:47:31 -0400 Message-ID: <28358.1470242851@sss.pgh.pa.us> X-Pg-Spam-Score: -3.1 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org John Scalia writes: > You are correct, though, Tom, that the hstore extension is 1.1. Is there > some other, not =>, construct I should be using? The hstore(text,text) function replaces that. > Curiously, I just checked > my personal sandbox database (9.5) and the hstore there is 1.3, but like I > said earlier the update succeeds on that one. That's pretty hard to believe, because 9.5 disallows => as an operator name altogether. I still suspect that you have got a search path problem. You might try, eg, "\do ||" in psql and see whether hstore || is listed or not. Also check which schema \dx says the hstore extension is in in each database. regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin