Re: on select rule - Mailing list pgsql-sql

From Sergey Levchenko
Subject Re: on select rule
Date
Msg-id e3ffbf240604140000k5f380276me0c4569b6b1bab91@mail.gmail.com
Whole thread Raw
In response to Re: on select rule  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Responses Re: on select rule
List pgsql-sql
http://www.postgresql.org/docs/8.1/interactive/sql-createtrigger.html
SELECT does not modify any rows so you can not create SELECT triggers.
Rules and views are more appropriate in such cases.

On 4/14/06, A. Kretschmer <andreas.kretschmer@schollglas.com> wrote:
> am  13.04.2006, um 18:46:02 +0300 mailte Sergey Levchenko folgendes:
> > Hi
> >
> > If I can not do insert/update action with on select rule, how can I
> > execute some procedure or any sql statement on select event?
>
> With a TRIGGER.
>
>
> HTH, Andreas
> --
> Andreas Kretschmer    (Kontakt: siehe Header)
> Heynitz:  035242/47215,      D1: 0160/7141639
> GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
>  ===    Schollglas Unternehmensgruppe    ===
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org
>

pgsql-sql by date:

Previous
From: "Todd Kennedy"
Date:
Subject: Simple plpgsql question
Next
From: Andreas Kretschmer
Date:
Subject: Re: on select rule