Re: Selecting a constant question - Mailing list pgsql-hackers

From Zeugswetter Andreas ADI SD
Subject Re: Selecting a constant question
Date
Msg-id E1539E0ED7043848906A8FF995BDA57902240FD1@m0143.s-mxs.net
Whole thread Raw
In response to Re: Selecting a constant question  ("Florian G. Pflug" <fgp@phlo.org>)
Responses Re: Selecting a constant question
Re: Selecting a constant question
List pgsql-hackers
> Thats exactly the point. Consider
> select mytext from mytable ;
>
> How can PostgreSQL possibly know the maximum length of the
> returned values *before* it has scanned the whole table?

I think this focuses too much on those cases where it is not possible.
When it is not feasible like with a text column, clients deal with it
already (obviously some better than others).
It is for those cases where it would be feasible, like constants (or
concateneted columns), where the max length if properly returned could
be used to improve performance.

Andreas


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Autovacuum launcher doesn't notice death of postmaster immediately
Next
From: Heikki Linnakangas
Date:
Subject: Re: Selecting a constant question