Re: pgsql problem

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Grignon Etienne <egrignon(at)egrignon(dot)com>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: pgsql problem
Date: 2003-02-27 22:04:36
Message-ID: 20030227140020.U90162-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


On Wed, 26 Feb 2003, Grignon Etienne wrote:

>
> test=# SELECT createuser('toto', true, true, true);
> NOTICE: Begin Of Update Permissions
> NOTICE: End Of Update Permissions
> NOTICE: TRIGGER
> createuser
> ------------
> 0
> (1 row)
> test=#
>
>
> My problem is that the trigger for the insert is executed at the end of the
> procedure, so I can't do the update of the user's permissions.
>
> For me and my co-workers, the NOTICE TRIGGER should be before Begin Of
> Update Permissions.
>
> Could you explain to me how is it working ?

Right now AFAIR after triggers run at the end of the containing statement
(in this case the select of createuser) which is what causes the behavior
you're seeing. I'm not sure of a good work around, off hand, for your
case though.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2003-02-27 22:38:43 Re: GiST, Not Using Index
Previous Message Itai Zukerman 2003-02-27 21:15:03 Re: GiST, Not Using Index