Re: backtrace_on_internal_error
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-12-08T15:05:09Z
Lists: pgsql-hackers
Peter Eisentraut <peter@eisentraut.org> writes: > Here is a patch to play with. Didn't read the patch yet, but ... > One possible question for discussion is whether the default for this > should be off, on, or possibly something like on-in-assert-builds. > (Personally, I'm happy to turn it on myself at run time, but everyone > has different workflows.) ... there was already opinion upthread that this should be on by default, which I agree with. You shouldn't be hitting cases like this commonly (if so, they're bugs to fix or the errcode should be rethought), and the failure might be pretty hard to reproduce. I'm not really sold that we even need YA GUC, for that matter. How about committing the behavior without a GUC, and then back-filling one if we get pushback? regards, tom lane
Commits
-
Add GUC backtrace_on_internal_error
- a740b213d4b4 17.0 landed
-
Fix variable name and comment
- 541e8f14a185 17.0 landed
-
Be more wary about OpenSSL not setting errno on error.
- ebbd499d4b55 16.2 landed
- 87b46ad90491 13.14 landed
- 551d4b28e445 15.6 landed
- 271d24f31ddd 12.18 landed
- 0a5c46a7a488 17.0 landed
- 07ce2432682d 14.11 landed