Re: Truncate Permission

Stephen Frost <sfrost@snowman.net>

From: Stephen Frost <sfrost@snowman.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: nicky@chuckie.co.uk, pgsql-hackers@postgresql.org
Date: 2007-06-13T14:54:01Z
Lists: pgsql-hackers
* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> "Nicholas Barr" <nicky@chuckie.co.uk> writes:
> > At the moment it seems as if a single 32 bit integer is used for the
> > permissions, with the top half being the grantable rights. I assume I
> > would need to extend this into two 32 bit integers, or one 64 bit integer?
> 
> Two 32-bit please.  We are still trying not to depend on 64-bit
> arithmetic for any core functionality.

Agreed.  Also, most of the time you'll only be pulling in the first one
(for a permissions check).  The second would only ever be used when a
'GRANT' is done.

	Thanks,

		Stephen