?
Solved

language "plpgsql" does not exist

Posted on 2004-11-17
1
Medium Priority
?
7,195 Views
Last Modified: 2008-01-09
I am trying to write a function in postgresql and I keep getting the error: language "plpgsql" does not exist.  I have type in createlang cs442 and added 'Language plpgsql to my function but I am still getting the error.

Can someone help please.
0
Comment
Question by:running32
1 Comment
 
LVL 22

Accepted Solution

by:
earth man2 earned 2000 total points
ID: 12613239
createlang --help

gives you the options.  You need to run createlang using account which has database superuser status ie usually postgres.
database process postmaster needs to be running
try
createlang --dbname=cs422 --username=postgres -W  plpgsql
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

Many developers have database experience, but are new to PostgreSQL. It has some truly inspiring capabilities. I have several years' experience with Microsoft's SQL Server. When I began working with MySQL, I wanted a quick-reference to MySQL (htt…
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.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

840 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