From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>, Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Inheritance planner CPU and memory usage change since 9.3.2 |
Date: | 2015-06-18 20:04:20 |
Message-ID: | 4288.1434657860@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
I wrote:
> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
>> Well, append_rel_list has an AppendRelInfo for every RTE and that
>> contains a List (translated_vars) which in turn contains a Var node
>> for every column. I'm not sure how that compares to the RTE itself.
> RTEs also have a per-column component, namely the lists of column alias
> names.
... although I see that range_table_mutator doesn't bother to copy/change
the column alias substructure. (Wonder if that gives rise to any
observable EXPLAIN bugs...) But it still seems like the append_rel_list
shouldn't be all that much bulkier than all the other crap that gets
generated inside this loop. We're not doing anything at all to reclaim
space consumed inside subquery_planner, and you'd think that would be
a lot.
By the by, the tablesample additions to range_table_mutator are obviously
broken.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Eric Ridge | 2015-06-18 20:36:17 | Weirdness using Executor Hooks |
Previous Message | Jim Nasby | 2015-06-18 19:49:57 | Re: Is it possible to have a "fast-write" Index? |