Re: proposal: regrole type? - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: proposal: regrole type?
Date
Msg-id CAFj8pRAWdBKb1kW-h7V96W4=6yoqDO24cyUmp2Xo+S0xt2VLvQ@mail.gmail.com
Whole thread Raw
In response to Re: proposal: regrole type?  (Pavel Golub <pavel@microolap.com>)
Responses Re: proposal: regrole type?
List pgsql-hackers
Hello

2012/12/25 Pavel Golub <pavel@microolap.com>:
> Hello, Pavel.
>
> You wrote:
>
> PS> Hello
>
> PS> Can we implement REGROLE type, that simplify role name <-> oid transformations?
>
> +1 from me. My old wish.

I started implementation. I found a two points, that should be solved before.

we operate over roles with (without) fictive role "public". So we need
two datatypes :( I have no idea about second name :( - there should be
difference if type enables or disallow "public".

second issue is value of ACL_ID_PUBLIC, that is zero - and there is
not difference from InvalidOid - what should be acceptable via "-"
symbol.

Any ideas?

Regards

Pavel

>
> PS> Regards
>
> PS> Pavel
>
>
>
>
>
> --
> With best wishes,
>  Pavel                          mailto:pavel@gf.microolap.com
>



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: proposal: regrole type?
Next
From: Dimitri Fontaine
Date:
Subject: Re: Event Triggers: adding information