pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sergey Levchenko <sector119@gmail.com>
To: A. Kretschmer <andreas.kretschmer@schollglas.com>
To: pgsql-sql@postgresql.org
Subject: Re: on select rule
Date: Fri, 14 Apr 2006 10:00:22 +0300
Message-ID: <e3ffbf240604140000k5f380276me0c4569b6b1bab91@mail.gmail.com> (raw)
In-Reply-To: <20060413214042.GA19613@webserv.wug-glas.de>
References: <e3ffbf240604130846t607f044ej423c3f6bbeb32131@mail.gmail.com>
	<20060413214042.GA19613@webserv.wug-glas.de>

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
>


view thread (4+ messages)  latest in thread

Message-ID: <e3ffbf240604140000k5f380276me0c4569b6b1bab91@mail.gmail.com>
Permalink:  ../e3ffbf240604140000k5f380276me0c4569b6b1bab91@mail.gmail.com/
Also on:    postgresql.org/message-id/e3ffbf240604140000k5f380276me0c4569b6b1bab91@mail.gmail.com

 · 

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: pgsql-sql@postgresql.org
  Cc: sector119@gmail.com, andreas.kretschmer@schollglas.com
  Subject: Re: on select rule
  In-Reply-To: <e3ffbf240604140000k5f380276me0c4569b6b1bab91@mail.gmail.com>

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

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