From: | "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | "Stephen Cook" <sclists(at)gmail(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: statement-level trigger sample out there? |
Date: | 2007-11-29 14:26:54 |
Message-ID: | 162867790711290626m105ac02fgd1a6dcab673a24d4@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On 29/11/2007, Stephen Cook <sclists(at)gmail(dot)com> wrote:
> I am curious (coming from a MS SQL Server background, I just started
> playing with PostgreSQL recently).
yes, I belive. I was too. There are total different style of triggeres
in Postgres. But If I can say, programming in Postgres is much more
confortable. But It is different. You have to use ROW triggers.
>
> What type of situation would warrant a statement-level trigger that
> can't access the old and new values? Without that access, isn't the
> only information you get is the fact that an operation occurred on the
> table? Or am I missing something?
>
> -- Stephen
>
Statement triggers can be used in some kind of auditing. Maybe. I
didn't use it. And I use Postgres five years.
Pavel
>
>
> Pavel Stehule wrote:
> > Hello
> >
> > You cannot to access to values in statement trigger. Postgres doesn't
> > support it.
> >
> > Regards
> > Pavel Stehule
> >
> > On 29/11/2007, Christian Kindler <christian(dot)kindler(at)gmx(dot)net> wrote:
> >> Hi
> >>
> >> Can anyone provide me a simple example of a statement-level trigger? Problem is I do not know how to access the old.*, new.* values.
> >>
> >> Thanks
> >> Chris
> >> --
> >> GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
> >> Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
> >>
> >> ---------------------------(end of broadcast)---------------------------
> >> TIP 1: if posting/reading through Usenet, please send an appropriate
> >> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> >> message can get through to the mailing list cleanly
> >>
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 1: if posting/reading through Usenet, please send an appropriate
> > subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> > message can get through to the mailing list cleanly
> >
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: You can help support the PostgreSQL project by donating at
>
> http://www.postgresql.org/about/donate
>
From | Date | Subject | |
---|---|---|---|
Next Message | Christian Kindler | 2007-11-29 14:44:47 | |
Previous Message | Stephen Cook | 2007-11-29 14:16:46 | Re: statement-level trigger sample out there? |