[GENERAL] Permissions for Web App - Mailing list pgsql-general

From Igal @ Lucee.org
Subject [GENERAL] Permissions for Web App
Date
Msg-id dee3616a-24c6-8a4b-b7f9-66ed3a9ce427@lucee.org
Whole thread Raw
Responses Re: [GENERAL] Permissions for Web App
List 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

pgsql-general by date:

Previous
From: Ron Johnson
Date:
Subject: Re: [GENERAL] Using cp to back up a database?
Next
From: Darren Douglas
Date:
Subject: Re: [GENERAL] Using cp to back up a database?