pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Make more use of RoleSpec struct
Date: Thu, 29 Dec 2016 15:57:22 +0000
Message-ID: <E1cMd50-0000Fo-Lh@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Make more use of RoleSpec struct

Most code was casting this through a generic Node.  By declaring
everything as RoleSpec appropriately, we can remove a bunch of casts and
ad-hoc node type checking.

Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/2e254130d1d3f16575f2d72952ab23b4e27d035a

Modified Files
--------------
src/backend/catalog/aclchk.c   |  6 +++---
src/backend/commands/policy.c  |  2 +-
src/backend/commands/user.c    | 12 +++++++-----
src/backend/parser/gram.y      | 17 +++++++++--------
src/backend/utils/adt/acl.c    | 28 ++++++----------------------
src/include/nodes/parsenodes.h | 22 +++++++++++-----------
src/include/utils/acl.h        |  8 ++++----
7 files changed, 41 insertions(+), 54 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1cMd50-0000Fo-Lh@gemulon.postgresql.org>
Permalink:  ../E1cMd50-0000Fo-Lh@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1cMd50-0000Fo-Lh@gemulon.postgresql.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter_e@gmx.net
  Subject: Re: pgsql: Make more use of RoleSpec struct
  In-Reply-To: <E1cMd50-0000Fo-Lh@gemulon.postgresql.org>
  References: <E1cMd50-0000Fo-Lh@gemulon.postgresql.org>

* 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