From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Make better use of existing enums in plpgsql |
Date: | 2016-09-09 14:23:19 |
Message-ID: | E1biMi7-0003Ti-Bu@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(dot)stehule(at)gmail(dot)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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2016-09-09 16:21:22 | pgsql: In PageIndexTupleDelete, don't assume stored item lengths are MA |
Previous Message | Tom Lane | 2016-09-09 13:20:41 | pgsql: Avoid reporting "cache lookup failed" for some user-reachable ca |