Re: WIP patch for Oid formatting in printf/elog strings - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: WIP patch for Oid formatting in printf/elog strings
Date
Msg-id 20141211204603.GQ1768@alvh.no-ip.org
Whole thread Raw
In response to Re: WIP patch for Oid formatting in printf/elog strings  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Mark Dilger <hornschnorter@gmail.com> writes:
> > The attached patch changes the type of chunk_seq to int32,
> > rather than changing the %d formatting.  The other changes
> > are the same as in the previous patch.
> 
> BTW, how are you finding these?  If it's some automated tool, what?
> (If you're finding them by hand, I'm in awe of your scan rate.)

BTW if it's an automated tool, it might also improve by examining the
DatumGetFoo() macros.  In the reorderbuffer.c code just fixed you can
see that chunk_seq is obtained by DatumGetInt32(), which was wrong to
assign to a value of type Oid.

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



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: 9.5 release scheduling (was Re: logical column ordering)
Next
From: Peter Eisentraut
Date:
Subject: Re: Commitfest problems