agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] table level triggers?
Date: Sun, 13 Nov 2005 11:04:20 +0100
Message-ID: <43770FA4.9040608@tada.se> (raw)
In-Reply-To: <200511122229.09406.dgovoni@metadapt.com>
References: <200511122229.09406.dgovoni@metadapt.com>

Darren,
SQL (and PostgreSQL) implements triggers that are fired 'for each 
statement' or 'on each row'. PL/Java implements both. It is impossible 
for a PL (any PL) to introduce new types of triggers. Ideas in that 
direction is better debated on the PostgreSQL general mailing list. I 
suspect however, that the postgresql community will be reluctant to 
implement non-standard trigger types.

Kind regards,
Thomas Hallgren

 that PostgreSQL has
dgovoni at metadapt.com wrote:
> Hi all,
>    Pardons if this topic is located somewhere I have missed or has been 
> already discussed, but is there a plan to ever have table-level triggers? My 
> understanding is that current triggers fire on rows when an insert, 
> update or delete occurs.
>    I was thinking it would be nice to have one at the table level (called once 
> for each result set on a table) with special attention to before/after 
> "reads". This would allow privileged access control mechanisms to be 
> developed for tables and pluggable via pljava. I know that there are some 
> inside the database already, but with a custom trigger, it could do things 
> like call out to a directory or some external resource to determine 
> visibility.
>
> Is this even a good idea?
>
> Thank you!
> Darren
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at gborg.postgresql.org
> http://gborg.postgresql.org/mailman/listinfo/pljava-dev
>   





view thread (2+ messages)

Message-ID: <43770FA4.9040608@tada.se>
Permalink:  ../43770FA4.9040608@tada.se/
Also on:    postgresql.org/message-id/43770FA4.9040608@tada.se

reply

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: pljava-dev@postgresql.org
  Subject: Re: [Pljava-dev] table level triggers?
  In-Reply-To: <43770FA4.9040608@tada.se>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox