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

From Andres Freund
Subject Re: Add %z support to elog/ereport?
Date
Msg-id 20131111173038.GG2401@awork2.anarazel.de
Whole thread Raw
In response to Re: Add %z support to elog/ereport?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2013-11-11 12:01:40 -0500, Tom Lane wrote:
> Andres Freund <andres@2ndquadrant.com> writes:
> >> I'm less than sure that every version of gcc will recognize %z, either
> >> ...
> 
> > It's been in recognized in 2.95 afaics, so I think we're good.

Hm. Strange. Has to have been backpatched to the ancient debian I have
around. Unfortunately I can't easily "apt-get source" there...

The commit that added it to upstream is:
commit 44e9fa656d60bb19ab81d76698a61e47a4b0857c
Author: drepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Mon Jan 3 21:48:49 2000 +0000
   (format_char_info): Update comment.  (check_format_info): Recognize 'z'   modifier in the same way 'Z' was
recognized. Emit warning for formats   new in ISO C99 only if flag_isoc9x is not set.
 
   git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31188 138bc75d-0d04-0410-961f-82ee72b054a4

That's 3.0. Verified it in the 3.0. tarball, although I didn't compile
test it.

> We might be willing to toss 2.95 overboard by now, but we'd need to be
> sure of exactly what the new minimum usable version is.

Well, we don't even need to toss it overboard, just live with useless
warnings there since we'd translate it ourselves.

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Add %z support to elog/ereport?
Next
From: Robert Haas
Date:
Subject: Re: Add %z support to elog/ereport?