pgsql: Make better use of existing enums in plpgsql - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Make better use of existing enums in plpgsql
Date
Msg-id E1biMi7-0003Ti-Bu@gemulon.postgresql.org
Whole thread Raw
List pgsql-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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Avoid reporting "cache lookup failed" for some user-reachable ca
Next
From: Tom Lane
Date:
Subject: pgsql: In PageIndexTupleDelete, don't assume stored item lengths are MA