Re: pg_ls_waldir() & pg_ls_logdir()

From: Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_ls_waldir() & pg_ls_logdir()
Date: 2017-03-16 09:54:59
Message-ID: CAEepm=3nZZH6N=ryrwHQDhLfH96kCmS=ywhw2aVzb0Q_6TJELg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Mar 16, 2017 at 10:40 PM, Dave Page <dpage(at)pgadmin(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2017-03-16 10:03:29 Re: Partitioned tables and relfilenode
Previous Message Dave Page 2017-03-16 09:40:10 Re: pg_ls_waldir() & pg_ls_logdir()