Two different defs of MAX_TUPLES_PER_PAGE - Mailing list pgsql-hackers

From ITAGAKI Takahiro
Subject Two different defs of MAX_TUPLES_PER_PAGE
Date
Msg-id 20050902105248.475A.ITAGAKI.TAKAHIRO@lab.ntt.co.jp
Whole thread Raw
Responses Re: Two different defs of MAX_TUPLES_PER_PAGE
List pgsql-hackers
Hi,

I found two different definitions of MAX_TUPLES_PER_PAGE.
Which is reasonable? Or do they have another meaning?

backend/commands/vacuumlazy.c
#define MAX_TUPLES_PER_PAGE  ((int) (BLCKSZ / sizeof(HeapTupleHeaderData)))

backend/nodes/tidbitmap.c
#define MAX_TUPLES_PER_PAGE  ((BLCKSZ - 1) / MAXALIGN(offsetof(HeapTupleHeaderData, t_bits) + sizeof(ItemIdData)) + 1)

---
ITAGAKI Takahiro
NTT Cyber Space Laboratories



pgsql-hackers by date:

Previous
From: "Matthew Miller"
Date:
Subject: Re: PL/pgSQL: EXCEPTION NOSAVEPOINT
Next
From: "Jim C. Nasby"
Date:
Subject: Tracing I/O (was: 8.1 and syntax checking at create time)