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

From Peter Eisentraut
Subject Make better use of existing enums in plpgsql
Date
Msg-id b5e6987f-f2f5-5ec6-2dc4-754973cb5c4b@2ndquadrant.com
Whole thread Raw
Responses Re: Make better use of existing enums in plpgsql  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
plpgsql.h defines a number of enums, but most of the code passes them
around as ints.  The attached patch updates structs and function
prototypes to take enum types instead.  This clarifies the struct
definitions in plpgsql.h in particular.

I didn't deal with the PLPGSQL_RC_* symbols, since they are only used in
pl_exec.c (could be moved there?), and it would bloat this patch.

--
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment

pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: Should we cacheline align PGXACT?
Next
From: Andres Freund
Date:
Subject: Re: Re: PROPOSAL: make PostgreSQL sanitizers-friendly (and prevent information disclosure)