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 better use of existing enums in plpgsql
Date: Fri, 09 Sep 2016 14:23:19 +0000
Message-ID: <E1biMi7-0003Ti-Bu@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Make better use of existing enums in plpgsql

plpgsql.h defines a number of enums, but most of the code passes them
around as ints.  Update structs and function prototypes to take enum
types instead.  This clarifies the struct definitions in plpgsql.h in
particular.

Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e0013deb5983303d945aacd56909ac4ce227fde1

Modified Files
--------------
src/pl/plpgsql/src/pl_comp.c  |   6 +--
src/pl/plpgsql/src/pl_exec.c  |   2 +-
src/pl/plpgsql/src/pl_funcs.c |  12 ++---
src/pl/plpgsql/src/plpgsql.h  | 114 +++++++++++++++++++++---------------------
4 files changed, 67 insertions(+), 67 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: <E1biMi7-0003Ti-Bu@gemulon.postgresql.org>
Permalink:  ../E1biMi7-0003Ti-Bu@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1biMi7-0003Ti-Bu@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 better use of existing enums in plpgsql
  In-Reply-To: <E1biMi7-0003Ti-Bu@gemulon.postgresql.org>
  References: <E1biMi7-0003Ti-Bu@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