Re: Is it possible to findout actual owner of table?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: dipti shah <shahdipti1980(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Is it possible to findout actual owner of table?
Date: 2010-03-09 06:24:32
Message-ID: 3918.1268115872@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message dipti shah 2010-03-09 06:26:56 How to save existing permissions on schema and later on restore it?
Previous Message dipti shah 2010-03-09 06:21:05 Is it possible to findout actual owner of table?