Re: Triggers in Postgres

From: Richard Huxton <dev(at)archonet(dot)com>
To: Jasbinder Bali <jsbali(at)gmail(dot)com>
Cc: Tino Wildenhain <tino(at)wildenhain(dot)de>, pgsql-general(at)postgresql(dot)org
Subject: Re: Triggers in Postgres
Date: 2006-07-31 16:25:01
Message-ID: 44CE2EDD.8000100@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jasbinder Bali wrote:
> Actually Postgres manual of triggers says that in postgres, you can't
> write a trigger in conventional sql. You have to write it in a
> procedural language like C. So wanted some more insight on it.

See chapters 35 - 39 of the manual for details. In particular a
discussion of plpgsql and an example of writing a trigger using it.

http://www.postgresql.org/docs/8.1/static/plpgsql.html

There are other procedural languages available too: php, ruby, shell, R,
all of various levels of maturity and with different features.
--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2006-07-31 16:29:52 Re: Antw: Re: Query questions
Previous Message Jasbinder Bali 2006-07-31 15:58:49 Re: Triggers in Postgres