Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Where is the contrib directory in PostgreSQL 9.1?

This source states its at /usr/share/pgsql/contrib but the directory /usr/share/pgsql does not exist. I installed PostgreSQL from the rpm, on a CentOS 6.3.

I am basically trying to find the correct location to find /usr/share/pgsql/contrib/postgis-64.sql

share|improve this question
/usr/pgsql-9.1/share/extension/ on my installations – Milen A. Radev Sep 13 '12 at 14:53
When I install Postgres91 and contrib from the PGDG repo on CentOS 6, the contrib files/binaries are installed into /usr/pgsql-9.1, alongside the server package's binaries. – Zac B Sep 20 '12 at 21:00
up vote 0 down vote accepted
# yum whatprovides /usr/share/pgsql/contrib
Reading version lock configuration
Importing additional filelist information
postgresql-contrib-8.1.23-1.el5_7.3.x86_64 : Contributed source and binaries distributed with PostgreSQL
Repo        : base
Matched from:
Filename    : /usr/share/pgsql/contrib
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.