Re: Less than ideal error reporting in pg_stat_statements
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Rowley <david.rowley@2ndquadrant.com>
Cc: Jim Nasby <Jim.Nasby@bluetreble.com>,
Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2015-09-22T23:38:05Z
Lists: pgsql-hackers
David Rowley <david.rowley@2ndquadrant.com> writes: > On 23 September 2015 at 10:16, Jim Nasby <Jim.Nasby@bluetreble.com> wrote: >>> Attached patch fixes, though I'm not sure if %lld is portable or not. It is not. > I think you could probably use INT64_FORMAT, Not in a message you expect to be translatable. There are ways around that, but TBH I do not think that including the file size in the errdetail is valuable enough to be worth the trouble. I'd just leave it out. "insufficient memory to load statement file" seems quite enough. regards, tom lane
Commits
-
Be more wary about 32-bit integer overflow in pg_stat_statements.
- c67c2e2a2939 16.0 landed
- dd414bf4e047 10.22 landed
- 82ebc70d1c7f 15.0 landed
- 6b67db10c366 13.8 landed
- 6608a4305636 12.12 landed
- 17fd203b414e 14.5 landed
- 06f6a07ba465 11.17 landed