Re: possible minor EXPLAIN bug? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: possible minor EXPLAIN bug?
Date
Msg-id 20052.1219155902@sss.pgh.pa.us
Whole thread Raw
In response to possible minor EXPLAIN bug?  ("Pavel Stehule" <pavel.stehule@gmail.com>)
List pgsql-hackers
"Pavel Stehule" <pavel.stehule@gmail.com> writes:
> I thing so Agg node doesn't set width well:

The planner doesn't really bother to set the width correctly for any
expression-computing node.  This is partly laziness, but OTOH it is
very hard to estimate a sane width for any function returning a
variable-width data type; eg what are the odds of a useful answer forselect repeat(textcol, intcol) from tab1;
For plan nodes that return just Vars it's easier, since we generally
have got stats about average column widths.

I think Agg just copies the width of its input ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Improving non-joinable EXISTS subqueries
Next
From: Tom Lane
Date:
Subject: Re: Compatibility types, type aliases, and distinct types