Issue explicit error messages for attempts to use "shell" operators in
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 22 Apr 2008 01:34:34 +0000 (01:34 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 22 Apr 2008 01:34:34 +0000 (01:34 +0000)
commit426e26070e98bd9bdf229b79474d0b05b5120ea0
treef9830ce466d1f9265e4307eb80a1af23e81e80b3
parent3dbad48217fecb1e7c499aa9a051ebbfb1738741
Issue explicit error messages for attempts to use "shell" operators in
ordinary expressions.  This probably doesn't catch every single case
where you might get "cache lookup failed for function 0" for use of a
shell operator, but it will catch most.  Per bug #4120 from Pedro Gimeno.

This patch incidentally folds make_op_expr() into its sole remaining
caller --- the alternative was to give it yet more arguments, which
didn't seem an improvement.
src/backend/parser/parse_oper.c