Re: Permissions for Web App

From: "Igal (at) Lucee(dot)org" <igal(at)lucee(dot)org>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Permissions for Web App
Date: 2017-10-09 18:17:39
Message-ID: c247db82-d599-a3e3-57be-6c6c36928479@lucee.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/9/2017 10:51 AM, David G. Johnston wrote:
> On Mon, Oct 9, 2017 at 9:44 AM, Igal @ Lucee.org <igal(at)lucee(dot)org
> <mailto:igal(at)lucee(dot)org>>wrote:
>
> But I want to give that role permissions on future tables since I
> add new tables and drop/recreate current ones.
>
>
> ​ALTER DEFAULT PRIVILEGES​
>
> ​https://www.postgresql.org/docs/9.6/static/sql-alterdefaultprivileges.html

It worked, thanks!

For future reference and for the benefit of others, the command that I
ran is:

  ALTER DEFAULT PRIVILEGES IN SCHEMA public
    GRANT SELECT, INSERT, UPDATE, DELETE ON TABLES TO webapp;

Igal Sapir
Lucee Core Developer
Lucee.org <http://lucee.org/>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christophe Pettus 2017-10-09 19:08:13 startup process stuck in recovery
Previous Message Ron Johnson 2017-10-09 18:13:49 Re: Using cp to back up a database?