default grant

From: Sim Zacks <sim(at)compulab(dot)co(dot)il>
To: pgsql-general(at)postgresql(dot)org
Subject: default grant
Date: 2010-04-07 10:40:46
Message-ID: 4BBC612E.2020105@compulab.co.il
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is there a way to grant permissions on any new objects (or at least new
tables) to a role?

In my app I have a function that drops and recreates a table at certain
times (with a different structure). Like a temporary table, but it
survives until a process is run which overwrites it. The process is not
the same user as the user who wants to view the table.

As soon as this happens the users lose rights to the table and I need to
manually run:

Grant select on NEWTABLE for users;

Thanks

Sim

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Magnus Hagander 2010-04-07 12:18:53 Re: desktop heap usage in windows
Previous Message Łukasz Dejneka 2010-04-07 08:30:35 Internal PG functions, how to pass proper parameters?