Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Firing triggers based on certain Insert conditions


  • From: "Harpreet Dhaliwal" <harpreet(dot)dhaliwal01(at)gmail(dot)com>
  • To: pgsql-general(at)postgresql(dot)org
  • Subject: Firing triggers based on certain Insert conditions
  • Date: Sun, 28 Jan 2007 13:12:47 -0500
  • Message-id: <d86a77ef0701281012r74a2a446i8a529119026fa046(at)mail(dot)gmail(dot)com>

Hi
I have a table in which i have a field named 'source'
A trigger is written on this table.
I want this trigger to fire only when after Insert this field 'source'
has value = 'from', otherwise trigger should not be fired at all.
Just wondering if its really possible?
 
Thanks in advance.
Harpreet


Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group