relation_byte_size()

From: Sailesh Krishnamurthy <sailesh(at)cs(dot)berkeley(dot)edu>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: relation_byte_size()
Date: 2003-12-03 23:30:02
Message-ID: bxyoeupxyx1.fsf@datafix.cs.berkeley.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Hackers

Here is the definition of relation_byte_size() in optimizer/path/costsize.c:

----------------------------------------------------------------------
/*
* relation_byte_size
* Estimate the storage space in bytes for a given number of tuples
* of a given width (size in bytes).
*/
static double
relation_byte_size(double tuples, int width)
{
return tuples * (MAXALIGN(width) + MAXALIGN(sizeof(HeapTupleData)));
}

----------------------------------------------------------------------

Shouldn't this be HeapTupleHeaderData and not HeapTupleData ?

(Of course, from a costing perspective these shouldn't be very different but ...)

--
Pip-pip
Sailesh
http://www.cs.berkeley.edu/~sailesh

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Doug McNaught 2003-12-03 23:36:38 Re: PostgreSQL 7.3.4 gets killed by SIG_KILL
Previous Message Magnus Naeslund(t) 2003-12-03 23:00:58 PostgreSQL 7.3.4 gets killed by SIG_KILL