Re: modify error report in mdwrite/mdextend

Alvaro Herrera <alvherre@alvh.no-ip.org>

From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Cc: 蔡梦娟(玊于) <mengjuan.cmj@alibaba-inc.com>, pgsql-hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-10-18T14:45:28Z
Lists: pgsql-hackers
On 2021-Oct-18, Bharath Rupireddy wrote:

> On Mon, Oct 18, 2021 at 1:45 PM 蔡梦娟(玊于) <mengjuan.cmj@alibaba-inc.com> wrote:

> > Does this match your previous expectations? Hope to get your reply.
> 
> The control from the below ereport(ERROR, doesn't reach the short
> write error part. IMO, the existing way does no harm, it is a mere
> programming choice.

Yeah, this style is used extensively in many places of the backend code.

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/
"World domination is proceeding according to plan"        (Andrew Morton)