Re: how to grant select on table using trigger - Mailing list pgsql-admin

From Michael Fuhr
Subject Re: how to grant select on table using trigger
Date
Msg-id 20050107180501.GA90377@winnie.fuhr.org
Whole thread Raw
In response to Re: how to grant select on table using trigger  (santosh dwivedi <mwanaag@yahoo.com>)
List pgsql-admin
On Fri, Jan 07, 2005 at 02:33:50AM -0800, santosh dwivedi wrote:

> i want to use trigger because my one of application connects to
> databse and creates tables in database dynamically , other user
> want to acces it . as when application creates table in databse it
> does not GRANT select to other users. thats why i thought to grant
> permission by trigger.

Do you have control over how the application works?  Is it possible
to configure or modify the application to issue the appropriate
GRANTs?

> i know the newly created table name is listed in one Table called
> queries.  can you pls write sample code so that i can grant permission
> on tables created by application

I *did* show sample code.  If it doesn't work for you then please
provide more information, like any error messages that resulted.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

pgsql-admin by date:

Previous
From: "Miguel Angel Mejia Argueta"
Date:
Subject: error in start a Data base
Next
From: Michael Fuhr
Date:
Subject: Re: error in start a Data base