Make pg_get_statisticsobjdef_expressions return NULL
authorTomas Vondra <tomas.vondra@postgresql.org>
Fri, 7 May 2021 11:56:32 +0000 (13:56 +0200)
committerTomas Vondra <tomas.vondra@postgresql.org>
Fri, 7 May 2021 12:34:16 +0000 (14:34 +0200)
commit8d4b311d2494ca592e30aed03b29854d864eb846
tree3eebe7a08c62ef092122b0a08f27a0f6007870ed
parentb65431ca5e12a475ba7cf68afb63edb070c2ce08
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
src/backend/utils/adt/ruleutils.c