postgresql/src/pl/tcl
Daniel Gustafsson d435f15fff Add SysCacheGetAttrNotNull for guaranteed not-null attrs
When extracting an attr from a cached tuple in the syscache with
SysCacheGetAttr the isnull parameter must be checked in case the
attr cannot be NULL.  For cases when this is known beforehand, a
wrapper is introduced which perform the errorhandling internally
on behalf of the caller, invoking an elog in case of a NULL attr.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Reviewed-by: David Rowley <dgrowleyml@gmail.com>
Discussion: https://postgr.es/m/AD76405E-DB45-46B6-941F-17B1EB3A9076@yesql.se
2023-03-25 22:49:33 +01:00
..
expected Fix SPI's handling of errors during transaction commit. 2022-02-28 12:45:36 -05:00
po meson: add install-{quiet, world} targets 2023-03-23 21:20:18 -07:00
sql Fix SPI's handling of errors during transaction commit. 2022-02-28 12:45:36 -05:00
.gitignore Improve PL/Tcl errorCode facility by providing decoded name for SQLSTATE. 2016-03-25 16:54:52 -04:00
Makefile PL/Tcl: Don't link with -lc explicitly 2022-06-23 09:36:12 +02:00
generate-pltclerrcodes.pl Update copyright for 2023 2023-01-02 15:00:37 -05:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00
nls.mk Revert "Use wildcards instead of manually-maintained file lists in */nls.mk." 2022-07-13 14:29:10 -04:00
pltcl--1.0.sql Invent "trusted" extensions, and remove the pg_pltemplate catalog. 2020-01-29 18:42:43 -05:00
pltcl.c Add SysCacheGetAttrNotNull for guaranteed not-null attrs 2023-03-25 22:49:33 +01:00
pltcl.control Invent "trusted" extensions, and remove the pg_pltemplate catalog. 2020-01-29 18:42:43 -05:00
pltclu--1.0.sql Invent "trusted" extensions, and remove the pg_pltemplate catalog. 2020-01-29 18:42:43 -05:00
pltclu.control Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00