Jump to content

[Solved] Postgresql New Dll Plpgsql


gamalielfmb

Recommended Posts

=> SELECT COUNT(*) FROM pg_language WHERE lanname = 'plpgsql';
count
-------
    1
(1 row)

It sure looks like it's already installed to me. Like I said, if you aren't able to use plpgsql you just need to drop the database, and recreate it. Here is the results of the same query on a database that I created before I installed plpgsql on Johnny. It hasn't been dropped and recreated:

=> SELECT COUNT(*) FROM pg_language WHERE lanname = 'plpgsql';
count
-------
    0
(1 row)

I think your confusion is from using the wrong command. You don't need to create the language because only superuser privileges can do that, and the language is already created. You just need to use create the function in the language plpgsql.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...