projects
/
plantuner.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix empty table now suggest 1 page instead of 0 for empty table - zero causes unwilli...
[plantuner.git]
/
plantuner.c
diff --git
a/plantuner.c
b/plantuner.c
index
3c5c6c7
..
8595463
100644
(file)
--- a/
plantuner.c
+++ b/
plantuner.c
@@
-83,7
+83,6
@@
indexesAssign(const char * newval, bool doit, GucSource source, bool isDisable)
* accsess to system catalog
*/
if (MyBackendId == InvalidBackendId || !IsUnderPostmaster ||
* accsess to system catalog
*/
if (MyBackendId == InvalidBackendId || !IsUnderPostmaster ||
- !IsNormalProcessingMode() || MyAuxProcType != NotAnAuxProcess ||
!IsTransactionState())
{
/* reset init state */
!IsTransactionState())
{
/* reset init state */
@@
-292,7
+291,7
@@
execPlantuner(PlannerInfo *root, Oid relationObjectId, bool inhparent,
* estimate_rel_size() could be too pessimistic for particular
* workload
*/
* estimate_rel_size() could be too pessimistic for particular
* workload
*/
- rel->pages =
0
.0;
+ rel->pages =
1
.0;
rel->tuples = 0.0;
}
rel->tuples = 0.0;
}