Re: Temporary tables privileges

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: "Alejandro D(dot) Burne" <alejandro(dot)dburne(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Temporary tables privileges
Date: 2005-03-14 17:36:13
Message-ID: 200503141736.j2EHaDl00629@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alejandro D. Burne wrote:
> Thanks Bruce, then how can I grant an user to create tmp tables and
> drop then it, without gives him global drop priv (I can't grant drop
> priv for the tmp table because don't exist yet)

Perhaps you need a SECURITY DEFINER function. You can set the
permissions on the temp schemas too:

GRANT { { CREATE | TEMPORARY | TEMP } [,...] | ALL [ PRIVILEGES ] }
ON DATABASE dbname [, ...] TO { username | GROUP groupname | PUBLIC } [, ...] [ WITH
GRANT OPTION ]

I have forgotten what you are trying to do.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2005-03-14 17:44:55 Re: prelimiary performance comparison pgsql vs mysql
Previous Message Paul Cunningham 2005-03-14 17:26:19 script variables