Re: Small proposal to improve out-of-memory messages
Alvaro Herrera <alvherre@alvh.no-ip.org>
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2018-03-31T13:36:07Z
Lists: pgsql-hackers
Tom Lane wrote: > In the wake of commit 442accc3f one might think that the message should > also include the context "identifier" if any. But I'm specifically not > proposing that, because of the point made in the discussion of that patch > that some identifier strings might contain security-sensitive query > excerpts. Now that that commit has required all context "names" to be > compile-time constants, it's hard to see how there could be any security > downside to showing them in a user-visible message. How about using errdetail_log() to include the context identifier? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Improve out-of-memory error reports by including memory context name.
- 1bb9e731e17b 11.0 landed
-
Allow memory contexts to have both fixed and variable ident strings.
- 442accc3fe0c 11.0 cited