relation_byte_size()

Поиск
Список
Период
Сортировка
От Sailesh Krishnamurthy
Тема relation_byte_size()
Дата
Msg-id bxyoeupxyx1.fsf@datafix.cs.berkeley.edu
обсуждение исходный текст
Ответы Re: relation_byte_size()  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: relation_byte_size()  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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




В списке pgsql-hackers по дате отправления:

Предыдущее
От: david@fetter.org (David Fetter)
Дата:
Сообщение: Re: Inside the Regex Engine
Следующее
От: Doug McNaught
Дата:
Сообщение: Re: PostgreSQL 7.3.4 gets killed by SIG_KILL