我使用主要的pgAdmin浏览和编辑我的PostgreSQL数据库。现在我想使用PhpStorm。
在PhpStorm中,我可以浏览我的表,但无法编辑数据。当我尝试时,会出现错误:
[42704] ERROR: type "hstore" does not exist
Kde: compilation of PL/pgSQL function "on_update" near line 3
函数“on_update”是更新触发器,它将旧行保存到历史表中并使用hstore类型。
PhpStorm使用postgresql-9.4-1201.jdbc4.jar驱动程序。我不知道这是驱动程序错误还是PhpStorm错误。我知道在pgAdmin中它可以工作,在PhpStorm中不能。
create extension hstore
命令:https://www.postgresql.org/docs/current/static/sql-createextension.html - user330315on_update
正在使用hstore
。我猜pgAdmin没有使用那个函数(无论那个函数来自哪里)。 - user330315CREATE EXTENSION IF NOT EXISTS hstore;
所以扩展已经安装了。 - Vojtěch Bartoš