From: Richard Huxton <dev@archonet.com>
To: ON.KG <skyer@on.kg>
Cc: pgsql-general@postgresql.org
Subject: Re: Trigger before insert
Date: Thu, 25 Nov 2004 12:54:46 +0000
Message-ID: <41A5D616.4090308@archonet.com> (raw)
In-Reply-To: <9414883125.20041125143740@on.kg>
References: <200411251400.32752.jerome@gmanmi.tv>
<41A584EE111.0263KG@129.180.47.120>
<9414883125.20041125143740@on.kg>
ON.KG wrote:
>
> How could i stop Inserting record into table by some condition?
RETURN null when using a before trigger. Or raise an exception to abort
the whole transaction.
--
Richard Huxton
Archonet Ltd
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-performance@postgresql.org
Cc: dev@archonet.com, skyer@on.kg, pgsql-general@postgresql.org
Subject: Re: Trigger before insert
In-Reply-To: <41A5D616.4090308@archonet.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