On Jan21, 2014, at 18:56 , Tom Lane <t...@sss.pgh.pa.us> wrote: > Robert Haas <robertmh...@gmail.com> writes: >> Perhaps we should jettison entirely the idea of using the operating >> system's built-in sprintf and use one of our own that has all of the >> nice widgets we need, like a format code that's guaranteed to be right >> for uint64 and one that's guaranteed to be right for Size. This could >> turn out to be a bad idea if the best sprintf we can write is much >> slower than the native sprintf on any common platforms ... and maybe >> it wouldn't play nice with GCC's desire to check format strings. > > That last is a deal-breaker. It's not just whether "gcc desires" to check > this --- we *need* that checking, because people get it wrong without it.
There's an attribute that enables this check for arbitrary functions AFAIR. best regards, Florian Pflug -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers