mirror of
https://github.com/HypoPG/hypopg
synced 2026-05-24 09:38:21 +00:00
Small fix of btree size estimation
This commit is contained in:
parent
ca1044d00a
commit
46d770c4ca
1 changed files with 1 additions and 1 deletions
2
hypopg.c
2
hypopg.c
|
|
@ -1509,7 +1509,7 @@ hypo_estimate_index(hypoEntry *entry, RelOptInfo *rel)
|
|||
+(sizeof(IndexTupleData) * entry->ncolumns)
|
||||
+ MAXALIGN(sizeof(ItemIdData) * entry->ncolumns);
|
||||
|
||||
usable_page_size = BLCKSZ - sizeof(PageHeaderData) - sizeof(BTPageOpaqueData);
|
||||
usable_page_size = BLCKSZ - SizeOfPageHeaderData - sizeof(BTPageOpaqueData);
|
||||
bloat_factor = (200.0
|
||||
- (fillfactor == 0 ? BTREE_DEFAULT_FILLFACTOR : fillfactor)
|
||||
+ additional_bloat) / 100;
|
||||
|
|
|
|||
Loading…
Reference in a new issue