Skip site navigation (1) Skip section navigation (2)

Re: Fix oversight in pts_error_callback()

From: "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu>
To: pgsql-patches(at)postgresql(dot)org
Subject: Re: Fix oversight in pts_error_callback()
Date: 2005-08-10 05:47:50
Message-ID: ddc4io$bn6$1@news.hub.org (view raw or flat)
Thread:
Lists: pgsql-patches
"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)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.



In response to

Responses

pgsql-patches by date

Next:From: William ZHANGDate: 2005-08-10 06:15:43
Subject: Re: BUG #1815: ECPGdebug causes crash on Windows XP
Previous:From: Luke LonerganDate: 2005-08-10 04:48:02
Subject: Re: COPY FROM performance improvements

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group