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

Re: Triggers on columns

From: David Fetter <david(at)fetter(dot)org>
To: Itagaki Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Triggers on columns
Date: 2009-09-03 02:10:18
Message-ID: 20090903021018.GO8410@fetter.org (view raw or flat)
Thread:
Lists: pgsql-hackers
On Thu, Sep 03, 2009 at 10:52:09AM +0900, Itagaki Takahiro wrote:
> Here is a patch to implement "Support triggers on columns" in our ToDo list.
> 
> The syntax is:
>     CREATE TRIGGER name
>         BEFORE UPDATE OF col1, col12, ...
>         ON tbl FOR EACH ROW EXECUTE PROCEDURE func();

Kudos!

> 
> I consulted the previous work following:
>     Column-level triggers (From: Greg Sabino Mullane, Date: 2005-07-04)
>     http://archives.postgresql.org/pgsql-patches/2005-07/msg00107.php
> and completed some under-construction parts.
> 
> It's still arguable that we should add dependencies from column
> triggers to referenced columns.

+1 for adding the dependencies.

Cheers,
David.
> In the present patch, dropeed
> columns are just ignored and always considered as not-modified.
> Please grep with "TODO: (TRIGGER)" to check the issue.
> 
> Comments welcome.
> 
> Regards,
> ---
> ITAGAKI Takahiro
> NTT Open Source Software Center


> 
> -- 
> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers


-- 
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david(dot)fetter(at)gmail(dot)com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

In response to

Responses

pgsql-hackers by date

Next:From: Robert HaasDate: 2009-09-03 02:12:04
Subject: Re: Schedule for 8.5 Development
Previous:From: Itagaki TakahiroDate: 2009-09-03 01:52:09
Subject: Triggers on columns

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group