aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/ruleutils.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-07-24 11:23:27 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-07-24 11:23:27 -0400
commit278cb4341103e967189997985b09981a73e23a34 (patch)
tree0b80dc3966c48f71463ffa9c9f3e6184fa09e2ea /src/backend/utils/adt/ruleutils.c
parentbbbd9121e63f9f7cf8cc86025d5d848fba477eb4 (diff)
downloadpostgresql-278cb4341103e967189997985b09981a73e23a34.tar.gz
postgresql-278cb4341103e967189997985b09981a73e23a34.zip
Be more consistent about errors for opfamily member lookup failures.
Add error checks in some places that were calling get_opfamily_member or get_opfamily_proc and just assuming that the call could never fail. Also, standardize the wording for such errors in some other places. None of these errors are expected in normal use, hence they're just elog not ereport. But they may be handy for diagnosing omissions in custom opclasses. Rushabh Lathia found the oversight in RelationBuildPartitionKey(); I found the others by grepping for all callers of these functions. Discussion: https://postgr.es/m/CAGPqQf2R9Nk8htpv0FFi+FP776EwMyGuORpc9zYkZKC8sFQE3g@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/ruleutils.c')
0 files changed, 0 insertions, 0 deletions