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: Permissions for Web App
Date: 2017-10-09 16:44:41
Message-ID: dee3616a-24c6-8a4b-b7f9-66ed3a9ce427@lucee.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

I created a role named `webapp` as follows:

  CREATE ROLE webapp WITH LOGIN PASSWORD 'changeme';

While in development, I want to give that role permissions on all tables
in schema public.  So far I've been using the following command, which
works on existing tables:

  GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO webapp;

But I want to give that role permissions on future tables since I add
new tables and drop/recreate current ones.

How can I do that?

Thanks,

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Darren Douglas 2017-10-09 16:49:12 Re: Using cp to back up a database?
Previous Message Ron Johnson 2017-10-09 16:41:37 Re: Using cp to back up a database?