language "plpgsql" does not exist

Posted on 2004-11-17
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.
Question by:running32
    1 Comment
    LVL 22

    Accepted Solution

    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
    createlang --dbname=cs422 --username=postgres -W  plpgsql

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    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: ( This requires some add-o…
    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…
    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.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now