pgsql-server/src/backend/optimizer/path costsize.c - Mailing list pgsql-committers

From momjian@svr1.postgresql.org (Bruce Momjian)
Subject pgsql-server/src/backend/optimizer/path costsize.c
Date
Msg-id 20031218034645.A8D88D1B443@svr1.postgresql.org
Whole thread Raw
List pgsql-committers
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    momjian@svr1.postgresql.org    03/12/17 23:46:45

Modified files:
    src/backend/optimizer/path: costsize.c

Log message:
    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 ...)

    Sailesh Krishnamurthy


pgsql-committers by date:

Previous
From: tgl@svr1.postgresql.org (Tom Lane)
Date:
Subject: pgsql-server/src/test/regress/expected Tag: RE ...
Next
From: momjian@svr1.postgresql.org (Bruce Momjian)
Date:
Subject: pgsql-server/doc/src/sgml func.sgml