From: Kristis Makris <kristis.makris@datasoft.com>
To: Phuong Ma <pma@commandprompt.com>
Cc: pgsql sql <pgsql-sql@postgresql.org>
Cc: Postgres-general <pgsql-general@postgresql.org>
Subject: Re: trigger on DELETE
Date: 11 Jul 2001 16:23:48 -0700
Message-ID: <200107112323.f6BNNra16872@postgresql.org> (raw)
In-Reply-To: <3B4CD9B7.B79DF11D@commandprompt.com>
> Ok, the function works only with a trigger that is defined as ON INSERT
> OR UPDATE. If I try to define a trigger for ON DELETE and then delete a
> row from the table, there is nothing in the 'NEW' variable to return. I
> get an error message. If I define the function to return NULL, 0, or
> nothing, then it comes up with a type mis-match error. Is there anyone
> who can help? Thanks.
Try using the OLD variable instead.
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: kristis.makris@datasoft.com, pma@commandprompt.com, pgsql-general@postgresql.org
Subject: Re: trigger on DELETE
In-Reply-To: <200107112323.f6BNNra16872@postgresql.org>
* 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