Re: [HACKERS] a bit more precise MaxOffsetNumber

2011-05-07 Thread Tomas Vondra
Dne 7.5.2011 04:02, Robert Haas napsal(a): > 2011/4/30 Tomas Vondra : >> I've been digging in the sources, and I've noticed the MaxOffsetNumber >> is defined (in storage/off.h) like this >> >> (BLCKSZ / sizeof(ItemIdData)) >> >> I guess it might be made a bit more precise by subtracting the header

Re: [HACKERS] a bit more precise MaxOffsetNumber

2011-05-06 Thread Robert Haas
2011/4/30 Tomas Vondra : > I've been digging in the sources, and I've noticed the MaxOffsetNumber > is defined (in storage/off.h) like this > >  (BLCKSZ / sizeof(ItemIdData)) > > I guess it might be made a bit more precise by subtracting the header > like this > >  (BLCKSZ - offsetof(PageHeaderData