projects
/
plantuner.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a05bfc
)
fix empty table now suggest 1 page instead of 0 for empty table - zero causes unwilli...
author
Teodor Sigaev
<teodor@sigaev.ru>
Tue, 23 Apr 2019 13:34:17 +0000
(16:34 +0300)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Tue, 23 Apr 2019 13:34:17 +0000
(16:34 +0300)
plantuner.c
patch
|
blob
|
history
diff --git
a/plantuner.c
b/plantuner.c
index
0fa907a
..
8595463
100644
(file)
--- a/
plantuner.c
+++ b/
plantuner.c
@@
-291,7
+291,7
@@
execPlantuner(PlannerInfo *root, Oid relationObjectId, bool inhparent,
* estimate_rel_size() could be too pessimistic for particular
* workload
*/
- rel->pages =
0
.0;
+ rel->pages =
1
.0;
rel->tuples = 0.0;
}