log_error_verbosity and unexpected errors - Mailing list pgsql-hackers

From Greg Stark
Subject log_error_verbosity and unexpected errors
Date
Msg-id CAM-w4HMStzNspuA9nJBij1ADKeJ0grbUutJsPVRY4ao8wSSMAw@mail.gmail.com
Whole thread Raw
Responses Re: log_error_verbosity and unexpected errors  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I think log_error_verbosity is a strange variable. It's useless for
expected user-facing errors but essential for unexpected errors that
indicate bugs in the code -- and you can only have it on for
everything or off for everything.

I'm finding I usually want it set to 'verbose' for anything that
PANICs or is generated by an elog() but it's just noise for anything
generated by an ereport() and is ERROR or below.

The minimum suggested change would to make it implicitly true for
PANIC and any unexpected elog()s and leave the GUC for enabling it in
the other cases.

-- 
greg



pgsql-hackers by date:

Previous
From: Sawada Masahiko
Date:
Subject: Re: TODO : Allow parallel cores to be used by vacuumdb [ WIP ]
Next
From: Tom Lane
Date:
Subject: Re: Aggregate function API versus grouping sets