X-Git-Url: http://sigaev.ru/git/gitweb.cgi?p=plantuner.git;a=blobdiff_plain;f=plantuner.c;h=85954637707b817522f1c4722e719e35e54a3691;hp=3c5c6c7dbe5e495ccc2ff16de12a2ebfb6695da4;hb=0bfe8d22e41a4a690ef9ca950f56c65ef194fe4d;hpb=3c3fe972db47384cef46dbf3f286bda95667d867 diff --git a/plantuner.c b/plantuner.c index 3c5c6c7..8595463 100644 --- 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 || - !IsNormalProcessingMode() || MyAuxProcType != NotAnAuxProcess || !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 */ - rel->pages = 0.0; + rel->pages = 1.0; rel->tuples = 0.0; }