Re: trigger

From: Richard Huxton <dev(at)archonet(dot)com>
To: aalam(at)tatashare(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: trigger
Date: 2005-11-18 13:35:44
Message-ID: 437DD8B0.6030509@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Aftab Alam wrote:
> Hello,
>
> I want to create a trigger in PostgresSQL
>
> In trigger, Before inserting the record, if data is already in the table,
> the trigger fire the mesaage that data is already there, and after that
> trigger ckeck for next insert statement.

Aftab - can you explain in some more detail. Raising an error on an
insert will happen automatically if you violate a unique constraing.

What is this "next insert statment" you're talking about?

--
Richard Huxton
Archonet Ltd

In response to

  • trigger at 2005-11-18 11:18:08 from Aftab Alam

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Csaba Nagy 2005-11-18 14:55:01 Re: How to debug a locked backend ?
Previous Message Richard_D_Levine 2005-11-18 13:28:51 Re: Rebranding PostgreSQL