Re: enhanced error fields - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: enhanced error fields
Date
Msg-id CAEYLb_WyitKHpZXvTF6PzEq-Vj4XnQCDjEZozuZx0f3R2=C2Ug@mail.gmail.com
Whole thread Raw
In response to Re: enhanced error fields  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: enhanced error fields  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
On 18 July 2012 19:13, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> * renamed erritem to err_generic_string
> * fixed CSVlog generation
> * new file /utils/error/relerror.c with axillary functions -
> declarations are in utils/rel.h

Why has this revision retained none of my editorialisations? In
particular, none of the documentation updates that I made were
retained.

You also haven't included changes where I attempted to make very large
ereport statements (often with verbose use of ternary conditionals)
clearer, nor have you included my adjustments to normalise the
appearance of new code to be consistent with existing code in various
ways.

You don't have to agree with all of those things of course, but you
should have at least commented on them. I didn't spend time cleaning
things up only to have those changes ignored. I'm particularly
surprised that the documentation alterations were not retained, as you
yourself asked me to make those revisions.
    /* file error location */
-    if (Log_error_verbosity >= PGERROR_VERBOSE)
+        {        StringInfoData msgbuf;


Why have you retained the scope here? Couldn't you have just moved the
single declaration instead?

-- 
Peter Geoghegan       http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services


pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: SP-GiST for ranges based on 2d-mapping and quad-tree
Next
From: Peter Geoghegan
Date:
Subject: Re: embedded list v2