parse callback allows inserting cursorpos when hide_stmt.

From: Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: parse callback allows inserting cursorpos when hide_stmt.
Date: 2018-03-07 08:10:52
Message-ID: 20180307.171052.39911696.horiguchi.kyotaro@lab.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello.

Parse error callback sets cursor position even if hide_stmt is
true. So I see a strange message with meaningless 'at character
%d' notation.

2018-03-07 11:11:43.489 JST [10304] DEBUG: removed 223/2049, age(-2s:121, -3s:121, *-30s:1584, -60s:223, -90s:0) naccessed(0:223, 1:0, 2:0) at character 15
<no STATEMENT follows>

I think hide_stmt is another reason to refrain from setting cursorpos.

regards,

--
Kyotaro Horiguchi
NTT Open Source Software Center

Attachment Content-Type Size
0001-Don-t-add-cursor-position-when-hide_stmt.patch text/x-patch 2.5 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Tsunakawa, Takayuki 2018-03-07 08:23:50 RE: Temporary tables prevent autovacuum, leading to XID wraparound
Previous Message Andrey Borodin 2018-03-07 07:47:40 Re: 2018-03 CFM