X-Git-Url: http://www.sigaev.ru/git/gitweb.cgi?p=plantuner.git;a=blobdiff_plain;f=plantuner.c;h=85954637707b817522f1c4722e719e35e54a3691;hp=afec4bfedf682389486439d040beb476da589bdf;hb=0bfe8d22e41a4a690ef9ca950f56c65ef194fe4d;hpb=bbee12921a84b014751c9c0cad5cedb31d066d65 diff --git a/plantuner.c b/plantuner.c index afec4bf..8595463 100644 --- a/plantuner.c +++ b/plantuner.c @@ -83,7 +83,7 @@ indexesAssign(const char * newval, bool doit, GucSource source, bool isDisable) * accsess to system catalog */ if (MyBackendId == InvalidBackendId || !IsUnderPostmaster || - !IsNormalProcessingMode() || !IsTransactionState()) + !IsTransactionState()) { /* reset init state */ if (isDisable) @@ -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; }