From: | dipti shah <shahdipti1980(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Is it possible to findout actual owner of table? |
Date: | 2010-03-09 06:29:36 |
Message-ID: | d5b05a951003082229k5c8a8064gf6c38b70f4950109@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I don't want users to create/drop/alter anything directly. They have to use
stored procedure for everything. The stored procedure creates logging tables
and stores many other auditing information so it is madatory to prevent
users from running any direct commands.
Thanks,
Dipti
On Tue, Mar 9, 2010 at 11:54 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> dipti shah <shahdipti1980(at)gmail(dot)com> writes:
> > I have created the stored procedure that allows particular users to
> create
> > the table. I want to prevent users to drop the tables owned by someone
> esle
> > and hence, I am making owner of each table created by this stored
> procedure
> > to super user(postgres) so that no one will be allowed to drop/alter
> table.
> > I want to allow to drop/alter the table by actuall user who ran the
> stored
> > procedure to create the table. Could anyone please suggest me how to
> proceed
> > with this?
>
> It sounds like you are going to a great deal of trouble to reinvent the
> standard behavior. Why not forget the stored procedure and just let
> users create and drop their own tables?
>
> regards, tom lane
>
From | Date | Subject | |
---|---|---|---|
Next Message | John R Pierce | 2010-03-09 06:49:58 | Re: Is it possible to findout actual owner of table? |
Previous Message | dipti shah | 2010-03-09 06:26:56 | How to save existing permissions on schema and later on restore it? |