Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commited96bfd

Browse files
committed
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 doublerelation_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
1 parentbb58eed commited96bfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/optimizer/path/costsize.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
* Portions Copyright (c) 1994, Regents of the University of California
5050
*
5151
* IDENTIFICATION
52-
* $PostgreSQL: pgsql/src/backend/optimizer/path/costsize.c,v 1.117 2003/12/03 17:45:07 tgl Exp $
52+
* $PostgreSQL: pgsql/src/backend/optimizer/path/costsize.c,v 1.118 2003/12/18 03:46:45 momjian Exp $
5353
*
5454
*-------------------------------------------------------------------------
5555
*/
@@ -1969,7 +1969,7 @@ set_rel_width(Query *root, RelOptInfo *rel)
19691969
staticdouble
19701970
relation_byte_size(doubletuples,intwidth)
19711971
{
1972-
returntuples* (MAXALIGN(width)+MAXALIGN(sizeof(HeapTupleData)));
1972+
returntuples* (MAXALIGN(width)+MAXALIGN(sizeof(HeapTupleHeaderData)));
19731973
}
19741974

19751975
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp