"Tom Lane" <tgl@sss.pgh.pa.us> writes
>
> Please exhibit a case in which you feel this is needed.
>
Suppose I want to print a debug info in parseTypeString() like this:
+ elog(DEBUG1, "parse type %s", buf.data);
raw_parsetree_list = raw_parser(buf.data);
Rebuild the server, psql it:
test=# set log_min_messages = debug1;
SET
test=# select regtypein('int4');
DEBUG: parse type SELECT NULL::int4
CONTEXT: invalid type name "int4"
regtypein
-----------
integer
(1 row)
The CONTEXT info is bogus.