Re: [HACKERS] mvstats triggers 32bit warnings

2017-04-07 Thread Alvaro Herrera
Andres Freund wrote: > Hi, > > compiling on linux 32 bit I get a lot of warnings due to printf format. > I suspect most of them should just be cured by using %zd or %zu instead > of %ld. You're right, they are. Confirmed, and pushed fix using %zd. I suppose %zu would be "more correct", but

[HACKERS] mvstats triggers 32bit warnings

2017-04-07 Thread Andres Freund
Hi, compiling on linux 32 bit I get a lot of warnings due to printf format. I suspect most of them should just be cured by using %zd or %zu instead of %ld. /home/andres/src/postgresql/src/backend/statistics/mvdistinct.c: In function ‘statext_ndistinct_deserialize’: