From: Dmitry Morozovsky <marck@rinet.ru>
To: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: Nicolas KOWALSKI <Nicolas.Kowalski@imag.fr>
Cc: pgsql-admin@postgresql.org
Subject: Re: update in rule
Date: Thu, 18 Oct 2001 21:49:09 +0400 (MSD)
Message-ID: <20011018213918.W92267-100000@woozle.rinet.ru> (raw)
In-Reply-To: <Pine.BSF.4.21.0110171159030.23020-100000@megazone23.bigpanda.com>
On Wed, 17 Oct 2001, Stephan Szabo wrote:
SS> Use a trigger instead, something like
SS>
SS> create function adresses_trigger() returns opaque as '
SS> begin
SS> NEW.date_maj := now();
SS> return NEW;
SS> end;' language 'plpgsql';
hmm. it seems defaul pgsql installation does not contains definition for
plpgsql language:
test=# select * from pg_language ;
lanname | lanispl | lanpltrusted | lanplcallfoid | lancompiler
----------+---------+--------------+---------------+-------------
internal | f | f | 0 | n/a
C | f | f | 0 | /bin/cc
sql | f | f | 0 | postgres
(3 rows)
however, plpgsql.so is in pgsql lib directory (though it is *NOT* visible
by ldconfig -r)
My installation is 7.1.3 under FreeBSD 4-stable. Is it somehow my fault or
does it need to manually do something like
create function plpgsql_handler() ...
create language 'plpgsql' ...
? Please give me advise how exactly should these statements look?
Sincerely,
D.Marck [DM5020, DM268-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: marck@rinet.ru, sszabo@megazone23.bigpanda.com, Nicolas.Kowalski@imag.fr, pgsql-admin@postgresql.org
Subject: Re: update in rule
In-Reply-To: <20011018213918.W92267-100000@woozle.rinet.ru>
References: <Pine.BSF.4.21.0110171159030.23020-100000@megazone23.bigpanda.com> <20011018213918.W92267-100000@woozle.rinet.ru>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox