Standardize the printf format for st_size

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Standardize the printf format for st_size
Date: 2020-09-15 11:38:30
Message-ID: f4e6d8d0-13a2-79d0-ceca-4d462481a26f@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Existing code uses various inconsistent ways to printf struct stat's
st_size member. The type of that is off_t, which is in most cases a
signed 64-bit integer, so use the long long int format for it.

I don't think anything is affected by this in practice, but it seems
reasonable to set a good convention for the next time this code gets copied.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment Content-Type Size
0001-Standardize-the-printf-format-for-st_size.patch text/plain 5.1 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2020-09-15 11:46:47 Re: Use incremental sort paths for window functions
Previous Message Heikki Linnakangas 2020-09-15 11:36:15 Re: Yet another fast GiST build