Unix Technical Forum

help with "plpgsql"

This is a discussion on help with "plpgsql" within the Pgsql General forums, part of the PostgreSQL category; --> Hi everybody I trying to upload some plpsql functions to postgresql database using a perl script and i get ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-24-2008, 07:11 PM
Pau Marc Munoz Torres
 
Posts: n/a
Default help with "plpgsql"

Hi everybody

I trying to upload some plpsql functions to postgresql database using a perl
script and i get the following error


psql:/usr/local/Make2D-DB_II/pgsql/make2db_functions.pgsql:85: ERROR:
language "plpgsql" does not exist
HINT: Use CREATE LANGUAGE to load the language into the database.

and then when I try to create the language, i get


geldb=# CREATE LANGUAGE plpgsql;
ERROR: language "plpgsql" already exists

anybody knows what's wrong?

Thanks

--
Pau Marc Muñoz Torres

Laboratori de Biologia Computacional
Institut de Biotecnologia i Biomedicina Vicent
Villar
Universitat Autonoma de Barcelona
E-08193 Bellaterra (Barcelona)

telèfon: 93 5812807
Email : paumarc.munoz@bioinf.uab.cat

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-24-2008, 07:11 PM
A. Kretschmer
 
Posts: n/a
Default Re: help with "plpgsql"

am Mon, dem 21.04.2008, um 17:46:49 +0200 mailte Pau Marc Munoz Torres folgendes:
> Hi everybody
>
> I trying to upload some plpsql functions to postgresql database using a perl
> script and i get the following error
>
>
> psql:/usr/local/Make2D-DB_II/pgsql/make2db_functions.pgsql:85: ERROR:
> language "plpgsql" does not exist
> HINT: Use CREATE LANGUAGE to load the language into the database.
>
> and then when I try to create the language, i get
>
>
> geldb=# CREATE LANGUAGE plpgsql;
> ERROR: language "plpgsql" already exists
>
> anybody knows what's wrong?


Wild guess: you have different databases. The language exists in the
database 'geldb', but your perl-script works on an other database.


Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:10 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com