相关疑难解决方法(0)

在视图中使用hstore比较转储和恢复PostgreSQL数据库失败

我有一个比较两hstore列的视图.

当我转储和还原此数据库时,还原失败并显示以下错误消息:

Importing /tmp/hstore_test_2014-05-12.backup...
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 172; 1259 1358132 VIEW hstore_test_view xxxx
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 "nullif"
   FROM hst...
pg_restore: [archiver …
Run Code Online (Sandbox Code Playgroud)

postgresql pg-restore hstore postgresql-9.3

6
推荐指数
1
解决办法
2473
查看次数

标签 统计

hstore ×1

pg-restore ×1

postgresql ×1

postgresql-9.3 ×1