Make better use of existing enums in plpgsql
Peter Eisentraut <peter_e@gmx.net>
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>
Files
| Path | Change | +/− |
|---|---|---|
| src/pl/plpgsql/src/pl_comp.c | modified | +3 −3 |
| src/pl/plpgsql/src/pl_exec.c | modified | +1 −1 |
| src/pl/plpgsql/src/pl_funcs.c | modified | +6 −6 |
| src/pl/plpgsql/src/plpgsql.h | modified | +57 −57 |