Re: Permissions for Web App

From: "Igal (at) Lucee(dot)org" <igal(at)lucee(dot)org>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Permissions for Web App
Date: 2017-10-13 18:03:52
Message-ID: 327616c7-637f-ce49-5098-90d9e140a580@lucee.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Stephen,

On 10/10/2017 6:14 AM, Stephen Frost wrote:
>
>> 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;
> Note that DEFAULT PRIVILEGES apply to a specific role (in the above
> case, whatever CURRENT_USER is) and therefore will only be helpful if
> you only have one user creating tables, in this case.

You mean that if I execute the ALTER DEFAULT command above as user
`postgres` then only tables created by user `postgres` will give default
privileges to role `webapp`?

I usually only create tables with user `postgres` but this is a bit
confusing, or at least unclear from the syntax of the command.

Thanks,

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2017-10-13 18:16:27 Re: "Shared strings"-style table
Previous Message Peter J. Holzer 2017-10-13 17:59:35 Re: "Shared strings"-style table