From: Pavan Deolasee Date: Thu, 9 Aug 2018 08:21:11 +0000 (+0530) Subject: Remove some dead/commented code X-Git-Tag: XL_10_R1BETA1~37 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=4dc96dd64aead586fac80fd627617429f51201f6;p=postgres-xl.git Remove some dead/commented code --- diff --git a/src/backend/commands/analyze.c b/src/backend/commands/analyze.c index 63bac4706a..5d5bfa1afb 100644 --- a/src/backend/commands/analyze.c +++ b/src/backend/commands/analyze.c @@ -3001,9 +3001,6 @@ coord_collect_simple_stats(Relation onerel, bool inh, int attr_cnt, initStringInfo(&query); /* Generic statistic fields */ appendStringInfoString(&query, "SELECT s.staattnum, " -// assume the number of tuples approximately the same on all nodes -// to build more precise statistics get this number -// "c.reltuples, " "s.stanullfrac, " "s.stawidth, " "s.stadistinct"); @@ -3069,10 +3066,6 @@ coord_collect_simple_stats(Relation onerel, bool inh, int attr_cnt, make_relation_tle(StatisticRelationId, "pg_statistic", "staattnum")); -// step->scan.plan.targetlist = lappend(step->scan.plan.targetlist, -// make_relation_tle(RelationRelationId, -// "pg_class", -// "reltuples")); step->scan.plan.targetlist = lappend(step->scan.plan.targetlist, make_relation_tle(StatisticRelationId, "pg_statistic", @@ -3162,7 +3155,6 @@ coord_collect_simple_stats(Relation onerel, bool inh, int attr_cnt, bool isnull; int colnum = 1; int16 attnum; -// float4 reltuples; float4 nullfrac; int32 width; float4 distinct; @@ -3181,9 +3173,6 @@ coord_collect_simple_stats(Relation onerel, bool inh, int attr_cnt, break; } -// value = slot_getattr(result, colnum++, &isnull); /* reltuples */ -// reltuples = DatumGetFloat4(value); - if (stats) { value = slot_getattr(result, colnum++, &isnull); /* stanullfrac */