From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Martin Marques <martin@bugs.unl.edu.ar>
Cc: pgsql-sql@postgresql.org
Subject: Re: functions and triggers
Date: Tue, 20 Aug 2002 14:16:13 -0700 (PDT)
Message-ID: <20020820141353.B45554-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <1029875385.3d62a6b9b2522@bugs.unl.edu.ar>
On Tue, 20 Aug 2002, Martin Marques wrote:
> I'm trying to build a trigger that will update a timestamp field in a table with
> the current timestamp, and I just can't make it work.
>
> The problemas are two:
>
> 1) when I try to create the trigger, it says that the function doesn't exist.
> Why is this happening?
You should probably show us what you were trying to do, but I'm going to
guess that the function doesn't have the right signature. On
current versions, Trigger functions should return opaque and take no
arguments (any arguments given on the create trigger line are passed
in a different fashion).
> 2) How does the trigger tell the function the row number identifier?
I'm not sure what you mean by this. Getting at the row being worked on
depends somewhat on what language you're using.
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sszabo@megazone23.bigpanda.com, martin@bugs.unl.edu.ar
Subject: Re: functions and triggers
In-Reply-To: <20020820141353.B45554-100000@megazone23.bigpanda.com>
* 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