Convert enum_in() to report errors softly.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 442e25d2485b1ecf3357725acee995a1c349163d
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2022-12-25T19:32:30Z
Releases: 16.0
Convert enum_in() to report errors softly.

I missed this in my initial survey, probably because I examined
the contents of pg_type in the postgres database, which lacks
any enumerated types.

Discussion: https://postgr.es/m/CAAJ_b97KeDWUdpTKGOaFYPv0OicjOu6EW+QYWj-Ywrgj_aEy1g@mail.gmail.com

Files

PathChange+/−
src/backend/utils/adt/enum.c modified +9 −3
src/test/regress/expected/enum.out modified +25 −0
src/test/regress/sql/enum.sql modified +6 −0

Discussion