Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WjffX-00075p-L5 for pgsql-bugs@arkaria.postgresql.org; Mon, 12 May 2014 02:08:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WjffX-00062y-2W for pgsql-bugs@arkaria.postgresql.org; Mon, 12 May 2014 02:08:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WjffW-00062r-4w for pgsql-bugs@postgresql.org; Mon, 12 May 2014 02:08:42 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WjffS-0002hM-KO for pgsql-bugs@postgresql.org; Mon, 12 May 2014 02:08:41 +0000 Received: from ayaki.localdomain (106-69-109-175.dyn.iinet.net.au [106.69.109.175]) by mrelayeu.kundenserver.de (node=mreue104) with ESMTP (Nemesis) id 0LalbM-1XCMdo36JE-00kPhH; Mon, 12 May 2014 04:08:37 +0200 Message-ID: <53702D20.4070505@2ndquadrant.com> Date: Mon, 12 May 2014 10:08:32 +0800 From: Craig Ringer Organization: 2nd Quadrant User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: pgsql-bugs Subject: hstore dump/restore bug in 9.3 X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:Aw4AfcqeUW9FMrISvwqwz+Y3iVivYrX7M2pzpUPk3X+ KSzbnE3vYi0asFaNVPbrTuBx+ypoHf/oD7640ALOHD0l/x8Uhd NP3pnZo+4AxF0DRw1u2ehBotln827wumpMKGJyxCH5n+2QqlCU GEM/ba7vgtXi1/f94pkfpTdahk/H1goBcBziSQzkVjhpbbns2t UnqPty+XZ+kj3Odqt9arM3Yv8NsiBIyXTPd6SfNArSdjYgsdEy 6dslL+4psxC7LndiPYi1iG9wmKdCtanRLLCSCFTDbf9JcKU77C cGlgpcLr6eDRBsb+cCDN9T0QjVlE5vY+6DFRjh4L4c+IYhGWCA fhxaOzFqoaO+2OTLD4IEqAXUQUYcH87ox83e+p+fA X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hi all A user has reported a bug where a simple view using hstore does not dump and restore correctly. I've reproduced the detailed test case they supplied below. The original report is by Stack Overflow user 'aidan', here: http://stackoverflow.com/q/23599926/398670 The error is: pg_restore: [archiver (db)] could not execute query: ERROR: operator does not exist: public.hstore = public.hstore LINE 2: SELECT NULLIF(hstore_test_table.column1, hstore_test_table.... produced by test case: CREATE DATABASE hstore_test; \c hstore_test CREATE EXTENSION hstore WITH SCHEMA public; CREATE SCHEMA hstore_test_schema; CREATE TABLE hstore_test_schema.hstore_test_table( id int, column1 hstore, column2 hstore, PRIMARY KEY( id ) ); CREATE VIEW hstore_test_schema.hstore_test_view AS SELECT NULLIF(column1, column2) AS comparison FROM hstore_test_schema.hstore_test_table; followed by command sequence: $ pg_dump -U postgres -Fc hstore_test -f test.out $ dropdb -U postgres hstore_test; $ createdb -U postgres hstore_test; $ pg_restore -U postgres -d hstore_test test.out pg_restore: [archiver (db)] Error while PROCESSING TOC: pg_restore: [archiver (db)] Error from TOC entry 172; 1259 96803 VIEW hstore_test_view postgres pg_restore: [archiver (db)] could not execute query: ERROR: operator does not exist: public.hstore = public.hstore LINE 2: SELECT NULLIF(hstore_test_table.column1, hstore_test_table.... ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. Command was: CREATE VIEW hstore_test_view AS SELECT NULLIF(hstore_test_table.column1, hstore_test_table.column2) AS comparison FROM h... -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs