Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

everywhere I see guides for postgre, it seems to be on version 8.4. In that case the instruction is:

sudo -u postgres psql < /usr/share/postgresql/8.4/contrib/adminpack.sql

that location doesn't exist in the 9.1 directory apparently.

Can anyone point me how to get it working (needed for pgadmin)?

share|improve this question
up vote 11 down vote accepted

admin pack can be found in /usr/share/postgresql/9.1/extension

To install

sudo -u postgres psql


Also to see a list of installed extensions select * from pg_extension;

share|improve this answer
this was more or less it. I was attempting to accomplish this with the user that was the owner of the database when in fact it appears that the default user, the one with superuser status, was required to do it. – Robert Sep 7 '12 at 14:32

The answer above works great. You just have to remember that you need to do this for every database, as the extensions are installed per database. The instructions above install the extensions in the database named postgres. To install it in your database just switch to your database:

\c yourdb and repeat the process: CREATE EXTENSION adminpack On Ubuntu the admin pack is in the postgresql-contrib package.

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.