Missing hstore extension

user6731260 picture user6731260 · Aug 29, 2016 · Viewed 7.6k times · Source

I am running postgresql-9.5.3 and I tried to create extension:

CREATE EXTENSION IF NOT EXISTS hstore; 

but I got this error:

could not open extension control file "/usr/share/pgsql/extension/hstore.control": No such file or directory

How can I install hstore?

Answer

Erwin Brandstetter picture Erwin Brandstetter · Aug 29, 2016

The package providing additional modules must be installed in your system.

For Fedora:

yum install postgresql-contrib

Or (for plain users):

sudo yum install postgresql-contrib