我有一台安装了Postgres 9.5的Ubuntu 18.04计算机。
我的数据库"mydb"已经安装了hstore。当我执行"\dx store"命令时,确实存在。
当我使用特定备份文件进行pg_restore时,一个名为“mydb”的新模式也被创建,但它不包含“hstore”扩展。"\dx"命令的结果相同。hstore已经在我的template1中了。
我的数据库"mydb"已经安装了hstore。当我执行"\dx store"命令时,确实存在。
List of installed extensions
Name | Version | Schema | Description
--------+---------+--------+--------------------------------------------------
hstore | 1.3 | public | data type for storing sets of (key, value) pairs
(1 row)
当我使用特定备份文件进行pg_restore时,一个名为“mydb”的新模式也被创建,但它不包含“hstore”扩展。"\dx"命令的结果相同。hstore已经在我的template1中了。
pg_restore失败并显示错误信息:
pg_restore: [archiver (db)] could not execute query: ERROR: type "hstore" does not exist
请问有谁能指出问题所在吗?
谢谢。