Re: Less than ideal error reporting in pg_stat_statements - Mailing list pgsql-hackers

From David Rowley
Subject Re: Less than ideal error reporting in pg_stat_statements
Date
Msg-id CAKJS1f-T97i7zMXjApYC-h1Gym2CQ0rWYNGtxn6HO+9zHabuTQ@mail.gmail.com
Whole thread Raw
In response to Less than ideal error reporting in pg_stat_statements  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Responses Re: Less than ideal error reporting in pg_stat_statements  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
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.


I think you could probably use INT64_FORMAT, and cast the stat.st_size to int64 too.

There's an example in FileRead() in fd.c

Regards

David Rowley

--
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services
 

pgsql-hackers by date:

Previous
From: Jim Nasby
Date:
Subject: Less than ideal error reporting in pg_stat_statements
Next
From: Peter Geoghegan
Date:
Subject: Re: Less than ideal error reporting in pg_stat_statements