Re: trouble with trigger/function???

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Nelson Ferreira Jr <nelson(at)radix(dot)com(dot)br>
Cc: cmarkiew(at)commnav(dot)com, "'Postgres (E-mail)'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: trouble with trigger/function???
Date: 2000-10-03 14:36:20
Message-ID: 17628.970583780@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Nelson Ferreira Jr <nelson(at)radix(dot)com(dot)br> writes:
> Below is what you have to do to load PL/pgSQL into a database:
> Pay atention to the plpgsql.so path, if your PostgreSQL is instaled in any
> other plate than /usr/local/pgsql

> CREATE FUNCTION plpgsql_call_handler () RETURNS OPAQUE AS
> '/usr/local/pgsql/lib/plpgsql.so' LANGUAGE 'C';

> CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql'
> HANDLER plpgsql_call_handler
> LANCOMPILER 'PL/pgSQL';

Or just use the "createlang" script, which wraps all that detail up for
you.

Whichever way you do it, you have to be Postgres superuser to do these
CREATEs.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-10-03 14:39:40 Re: alternative DB locations
Previous Message Tom Lane 2000-10-03 14:33:15 Re: trouble with trigger/function???