Re: Executing SQL commands via triggers without the use of

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Susan Hoddinott <susan(at)perth(dot)dialix(dot)com(dot)au>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Executing SQL commands via triggers without the use of
Date: 2003-03-01 02:00:05
Message-ID: 20030228175804.N7046-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Fri, 28 Feb 2003, Susan Hoddinott wrote:

> Having scoured the relevant documentation I cannot find anything which
> indicates how I simply create a database trigger to insert into a
> second table after insert on a first table, without the use of a
> procedure. As I do not want return values etc. this seems like
> overkill. Is it possible to create a trigger which executes SQL
> directly without the need to create a procedure? If so, what is the
> syntax?

Not really... You'll need to wrap it in a simple function.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Greg Stark 2003-03-01 06:22:39 Re: Beginner needs help
Previous Message Steve Crawford 2003-03-01 01:16:42 Re: Optimizing