Re: why is there no TRIGGER ON SELECT ?

From: Melvin Davidson <melvin6925(at)yahoo(dot)com>
To: Dmitriy Igrishin <dmitigr(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: why is there no TRIGGER ON SELECT ?
Date: 2011-02-22 13:47:06
Message-ID: 943294.93531.qm@web121808.mail.ne1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dmitriy

>Why not use function which returns table and wrap the
>logging (auditing) code in it ?

Because to use a trigger function, you need a trigger, and as previously stated, you cannot have a trigger on select. The same applies for a rule.

Melvin Davidson

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dmitriy Igrishin 2011-02-22 13:56:18 Re: why is there no TRIGGER ON SELECT ?
Previous Message Geoffrey Myers 2011-02-22 13:01:01 Re: disable triggers using psql