Extensions and roles for access administration

From: Виктор Егоров <vyegorov(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Extensions and roles for access administration
Date: 2012-06-22 12:55:14
Message-ID: CAGnEboh8TAs4h_XYRxoMX1qQJRULtPJb-heUAvVwC9T29MyanA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Greetings.

I've developed a small extension, that is essentially a collection of
tables with a bunch of PL/pgSQL functions,
that are API for the whole thing.

Inside the extension script I am creating extra roles, and access to the
extension's functions is provided
using these extra roles.
Given extension is named 'dmf' and one of the roles is 'dmf_user',
administrator has to grant 'dmf_user'
to any user that is eligible to use the provided APIs.

My questions are:
- is this the correct approach to include into extension a set of
administrative roles?
- I've noticed, that after I DROP EXTENSION, all roles are still there in
the database. Is this expected?

--
Victor Y. Yegorov

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Raghavendra 2012-06-22 13:28:52 Re: Starting a cluster as a service
Previous Message Léa Massiot 2012-06-22 12:06:00 Re: Starting a cluster as a service