Re: [HACKERS] pg_ls_waldir() & pg_ls_logdir() - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: [HACKERS] pg_ls_waldir() & pg_ls_logdir()
Date
Msg-id CAEepm=3nZZH6N=ryrwHQDhLfH96kCmS=ywhw2aVzb0Q_6TJELg@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] pg_ls_waldir() & pg_ls_logdir()  (Dave Page <dpage@pgadmin.org>)
Responses Re: [HACKERS] pg_ls_waldir() & pg_ls_logdir()  (Dave Page <dpage@pgadmin.org>)
List pgsql-hackers
On Thu, Mar 16, 2017 at 10:40 PM, Dave Page <dpage@pgadmin.org> wrote:
>> +        const int n = snprintf(NULL, 0, "%lld", attrib.st_size);

I wonder what the portable printf directive is for off_t.  Maybe
better to use INT64_FORMAT and cast to int64?

-- 
Thomas Munro
http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Dave Page
Date:
Subject: Re: [HACKERS] pg_ls_waldir() & pg_ls_logdir()
Next
From: Amit Langote
Date:
Subject: Re: [HACKERS] Partitioned tables and relfilenode