From 2c9c61c8419d5a99313162cfb526c3f590938298 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 18 Jan 2011 02:36:38 +0000 Subject: [PATCH] Fix odd printout of hasnulls/hasvarwidths flags for index tuples. Per a gripe some months ago from Alvaro. --- pg_filedump.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pg_filedump.c b/pg_filedump.c index 02222c5..7bb355c 100644 --- a/pg_filedump.c +++ b/pg_filedump.c @@ -767,8 +767,10 @@ FormatItem (unsigned int numBytes, unsigned int startIndex, " Has Nulls: %u Has Varwidths: %u\n\n", ((uint32) ((itup->t_tid.ip_blkid.bi_hi << 16) | (uint16) itup->t_tid.ip_blkid.bi_lo)), - itup->t_tid.ip_posid, (int) IndexTupleSize (itup), - IndexTupleHasNulls (itup), IndexTupleHasVarwidths (itup)); + itup->t_tid.ip_posid, + (int) IndexTupleSize(itup), + IndexTupleHasNulls(itup) ? 1 : 0, + IndexTupleHasVarwidths(itup) ? 1 : 0); if (numBytes != IndexTupleSize (itup)) printf (" Error: Item size difference. Given <%u>, "