Re: Fix oversight in pts_error_callback() - Mailing list pgsql-patches

From Qingqing Zhou
Subject Re: Fix oversight in pts_error_callback()
Date
Msg-id ddc4io$bn6$1@news.hub.org
Whole thread Raw
In response to Fix oversight in pts_error_callback()  ("Qingqing Zhou" <zhouqq@cs.toronto.edu>)
Responses Re: Fix oversight in pts_error_callback()
List pgsql-patches
"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.



pgsql-patches by date:

Previous
From: "Luke Lonergan"
Date:
Subject: Re: COPY FROM performance improvements
Next
From: Simon Riggs
Date:
Subject: Re: Remove all trace of EXPLAIN EXECUTE