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$ (view raw, whole thread or download thread mbox)
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",;
     raw_parsetree_list = raw_parser(;

Rebuild the server, psql it:

    test=# set log_min_messages = debug1;
    test=# select regtypein('int4');
    DEBUG:  parse type SELECT NULL::int4
    CONTEXT:  invalid type name "int4"
    (1 row)

The CONTEXT info is bogus.

In response to


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-2017 The PostgreSQL Global Development Group