Re: performance bug in instrument.c

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tomas Vondra <tv(at)fuzzy(dot)cz>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: performance bug in instrument.c
Date: 2013-02-08 03:55:38
Message-ID: 26952.1360295738@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tomas Vondra <tv(at)fuzzy(dot)cz> writes:
> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> A bigger question is why this is elog(DEBUG2) and not elog(ERROR).
>> Had it been the latter, we'd have noticed the mistake immediately.
>> The current choice might be masking any caller-logic errors that
>> exist, too.

> Not sure why it's DEBUG2, but if it really is an error then it should be
> logged as ERROR I guess.

Perhaps there was a reason for that once, but AFAICT the logic is clean
now. I changed these elogs to ERROR and ran all the regression tests
under auto_explain, and nothing failed. That's hardly conclusive of
course, but it's enough evidence to persuade me to make the change in
HEAD.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2013-02-08 04:07:00 Re: issues with range types, btree_gist and constraints
Previous Message Tomas Vondra 2013-02-08 01:52:22 Re: performance bug in instrument.c