Re: Fix oversight in pts_error_callback() - Mailing list pgsql-patches

From Qingqing Zhou
Subject Re: Fix oversight in pts_error_callback()
Date
Msg-id ddebjn$185g$1@news.hub.org
Whole thread Raw
In response to Fix oversight in pts_error_callback()  ("Qingqing Zhou" <zhouqq@cs.toronto.edu>)
List pgsql-patches
"Tom Lane" <tgl@sss.pgh.pa.us> writes:
>
> That's a contrived example (and if I believed it, I would think that the
> right answer is to emit no errcontext if the elevel is less than ERROR).
>

Yes, I've thought about ignore errcontext by considering elevel. But I
scratched the source code for other uses of errcontext, and I found seems
all of them understand that errcontext will be called unconditionally. For
example, buffer_write_error_callback(), it doesn't say "error in writing
block ..." but says "writing  block ...". So I think this place is not
consistent with others - it just says "invalid ... ", and should be changed.


Regards,
Qingqing



pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Proposed patch for preventing OID collisions
Next
From: Bruce Momjian
Date:
Subject: Bug in canonicalize_path()