Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZeX8b-0003bz-Ae for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Sep 2015 23:38:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZeX8a-0003Hg-KG for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Sep 2015 23:38:16 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZeX8Z-0003Gt-6n for pgsql-hackers@postgresql.org; Tue, 22 Sep 2015 23:38:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZeX8W-0001Rr-Rz for pgsql-hackers@postgresql.org; Tue, 22 Sep 2015 23:38:14 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t8MNc5HG015838; Tue, 22 Sep 2015 19:38:05 -0400 From: Tom Lane To: David Rowley cc: Jim Nasby , Pg Hackers Subject: Re: Less than ideal error reporting in pg_stat_statements In-reply-to: References: <5601D354.5000703@BlueTreble.com> Comments: In-reply-to David Rowley message dated "Wed, 23 Sep 2015 10:48:38 +1200" Date: Tue, 22 Sep 2015 19:38:05 -0400 Message-ID: <15837.1442965085@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org David Rowley writes: > On 23 September 2015 at 10:16, Jim Nasby 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 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers