Re: how to do plpgsql? - Mailing list pgsql-sql

From Josh Berkus
Subject Re: how to do plpgsql?
Date
Msg-id 3A809F15.1C60699C@agliodbs.com
Whole thread Raw
In response to how to do plpgsql?  (Joseph Shraibman <jks@selectacast.net>)
Responses Is this a bug, or is it just me?  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-sql
Joseph,

First you need to install plpgsql on a per database
basis, or you can just install it on template1 and it
will get added to all new databases.

CREATE FUNCTION "plpgsql_call_handler" ( ) RETURNS opaque AS
'/usr/lib/pgsql/plpgsql.so' LANGUAGE 'C';

CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql' HANDLER
"plpgsql_call_handler" LANCOMPILER 'PL/pgSQL';
                -Josh Berkus

(Instructions courtesy of Jeff at PGSQL Inc.)
-- 
______AGLIO DATABASE SOLUTIONS___________________________                                       Josh Berkus  Complete
informationtechnology      josh@agliodbs.com   and data management solutions       (415) 565-7293  for law firms, small
businesses      fax  621-2533   and non-profit organizations.       San Francisco
 


pgsql-sql by date:

Previous
From: Brice Ruth
Date:
Subject: Re: Re: SQL Join - MySQL/PostgreSQL difference?
Next
From: Joseph Shraibman
Date:
Subject: Re: how to do plpgsql?