From 0bfe8d22e41a4a690ef9ca950f56c65ef194fe4d Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Tue, 23 Apr 2019 16:34:17 +0300 Subject: [PATCH] fix empty table now suggest 1 page instead of 0 for empty table - zero causes unwilling effects for planner --- plantuner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plantuner.c b/plantuner.c index 0fa907a..8595463 100644 --- 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; } -- 2.37.3