Re: Add %z support to elog/ereport? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Add %z support to elog/ereport?
Date
Msg-id 32749.1384186702@sss.pgh.pa.us
Whole thread Raw
In response to Add %z support to elog/ereport?  (Andres Freund <andres@2ndquadrant.com>)
Responses Re: Add %z support to elog/ereport?
List pgsql-hackers
Andres Freund <andres@2ndquadrant.com> writes:
> I'd like to add support for the length modifier %z. Linux' manpages
> describes it as:
>  z      A  following  integer conversion corresponds to a size_t or ssize_t argument.

> Since gcc's printf format checks understand it, we can add support for
> it similar to the way we added %m support.

I think you'll find that %m is a totally different animal, because it
doesn't involve consuming an argument position.  I'm less than sure that
every version of gcc will recognize %z, either ... and what about the
translation infrastructure?
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Execute query with EXCEPT, INTERSECT as anti-join, join?
Next
From: Andres Freund
Date:
Subject: Re: Add %z support to elog/ereport?