Re: [RFC] grants vs. inherited tables

From: Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr>
To: Marko Kreen <markokr(at)gmail(dot)com>
Cc: Postgres Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [RFC] grants vs. inherited tables
Date: 2012-01-02 11:31:13
Message-ID: 87ipkumjcu.fsf@hi-media-techno.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Marko Kreen <markokr(at)gmail(dot)com> writes:
> I tried to generalize a function that creates partitions
> for a table and found out it's impossible to do it for grants.
>
> Basically, what I want is a child table that takes it's grants
> from parent table. IMHO quite reasonable request. But I don't
> see a way to do it in pl/pgsql. (Writing parser in plpgsql
> for aclitemout() output does not count.)

We solved that manually in https://github.com/slardiere/PartMgr, maybe
you will find it useful for pre-9.2 releases. See function
partition.grant() and partition.setgrant() in part_api.sql.

Regards,
--
Dimitri Fontaine
http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2012-01-02 13:11:58 patch: ALTER TABLE IF EXISTS
Previous Message Dimitri Fontaine 2012-01-02 11:25:02 Re: sorting operators in pg_dump