can't install PL\PgSQL language

Posted on 2004-11-11
Medium Priority
Last Modified: 2010-05-18
hey folks,

here is the problem: i tried to run an sql script against my PostgreSQL database and i get this error:

 lvassilev@CM12228989 ~/cygwin
$ psql -d mydbname -h myhost.something.edu -U lvassilev < test.sql
ERROR:  language "plpgsql" does not exist
HINT:  You need to use "createlang" to load the language into the database.

So i am guessing i need to install the "plpgsql" language in my PostgreSQL db. so i do this:

lvassilev@CM12228989 ~/cygwin
$ createlang plpgsql -d mydbname -h myhost.something.edu -U lvassilev
createlang: language installation failed: ERROR:  permission denied for language

i guess that means i don't have permission to do this. I am not a superuser on this database, i just log in to it remotely as a regular user. Does that mean i need to ask my DBA to do it for me or what?

i am logging to PostgreSQL through CygWin command prompt on a Windows XP professional machine.

thanks much.
Question by:Lou1
1 Comment
LVL 22

Accepted Solution

earth man2 earned 750 total points
ID: 12556720
Yup you need to be superuser for that database.

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Best database to use for Maps is PostgreSQL. This is an open source database. Comes as a package with most Linux OS. For more info visit the following site: http://www.postgresql.org/ (http://www.postgresql.org/) This requires some add-o…
By, Vadim Tkachenko. In this article we’ll look at ClickHouse on its one year anniversary.
Steps to create a PostgreSQL RDS instance in the Amazon cloud. We will cover some of the default settings and show how to connect to the instance once it is up and running.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question