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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-patches by date

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