Make pg_get_statisticsobjdef_expressions return NULL

Tomas Vondra <tomas.vondra@postgresql.org>

Commit: 8d4b311d2494ca592e30aed03b29854d864eb846
Author: Tomas Vondra <tomas.vondra@postgresql.org>
Date: 2021-05-07T12:34:16Z
Releases: 14.0
Make pg_get_statisticsobjdef_expressions return NULL

The usual behavior for functions in ruleutils.c is to return NULL when
the object does not exist. pg_get_statisticsobjdef_expressions raised an
error instead, so correct that.

Reported-by: Justin Pryzby
Discussion: https://postgr.es/m/20210505210947.GA27406%40telsasoft.com

Files

PathChange+/−
src/backend/utils/adt/ruleutils.c modified +2 −2

Discussion