pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Nikhil Sontakke <nikhil.sontakke@enterprisedb.com>
Cc: Petr Jelinek <pjmodos@pjmodos.net>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: GRANT ON ALL IN schema
Date: Wed, 05 Aug 2009 12:59:52 -0400
Message-ID: <21246.1249491592@sss.pgh.pa.us> (raw )
In-Reply-To: <603c8f070908050951s3e5df452se4c610f01b80bb7d@mail.gmail.com >
References: <4A37BF63.50008@pjmodos.net >
<4A38A956.8080600@pjmodos.net >
<4A4DE104.8090605@pjmodos.net >
<a301bfd90907170254re7dd52es9fedb007376d8055@mail.gmail.com >
<4A6059B4.5010004@pjmodos.net >
<4A607997.3030305@pjmodos.net >
<603c8f070907191628r6929055coe7627726a33ed143@mail.gmail.com >
<a301bfd90907192312s17e1b16cy3bcd6e0876960c04@mail.gmail.com >
<603c8f070908050932m19e7db65u9dab6d8001c5a237@mail.gmail.com >
<20810.1249490458@sss.pgh.pa.us >
<603c8f070908050951s3e5df452se4c610f01b80bb7d@mail.gmail.com >
Robert Haas <robertmhaas@gmail.com> writes:
> ... bulk-grant could be based on object type,
> object name (with wildcard or regexp pattern), schema membership, or
> maybe other things, and I think that would be quite useful if we can
> figure out how to make it clean and elegant.
Yeah. In the end you can always write a plpgsql function that filters
on anything at all. The trick is to pick some useful subset of
functionality that can be exposed in a less messy way.
Or maybe we are going at this the wrong way? Would it be better to try
harder to support the write-a-plpgsql-function approach? I don't think
the documentation even mentions that approach, let alone provides any
concrete examples. It might be interesting to document it and see if
there are any simple things we could do to file off rough edges in doing
grants that way, rather than implementing what must ultimately be a
limited solution directly in GRANT.
regards, tom lane
view thread (83+ messages) latest in thread
Message-ID: <21246.1249491592@sss.pgh.pa.us>
Permalink: ../21246.1249491592@sss.pgh.pa.us/
Also on: postgresql.org/message-id/21246.1249491592@sss.pgh.pa.us
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, sfrost@snowman.net, nikhil.sontakke@enterprisedb.com, pjmodos@pjmodos.net
Subject: Re: GRANT ON ALL IN schema
In-Reply-To: <21246.1249491592@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox