Make better use of existing enums in plpgsql

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Make better use of existing enums in plpgsql
Дата
Msg-id b5e6987f-f2f5-5ec6-2dc4-754973cb5c4b@2ndquadrant.com
обсуждение исходный текст
Ответы Re: Make better use of existing enums in plpgsql  (Pavel Stehule <pavel.stehule@gmail.com>)
Список 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

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: Re: Should we cacheline align PGXACT?
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Re: PROPOSAL: make PostgreSQL sanitizers-friendly (and prevent information disclosure)