How far are projections pushed down the execution tree?

From: tmp <skrald(at)amossen(dot)dk>
To: pgsql-hackers(at)postgresql(dot)org
Subject: How far are projections pushed down the execution tree?
Date: 2010-03-02 10:31:58
Message-ID: hmiper$1sua$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Consider a table and a query referring to only a subset of the columns
in that table. How early in the query evaluation is the projection
carried out?

Are the columns to be selected filtered out as early as in the very
access method that reads the table rows from the buffer, or are the
projection handled later, after the whole row has been fetched by the
access method?

Does it depend on the complexity of the query, how far down the three
that the projection is handled out?

Thanks!

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Asher Hoskins 2010-03-02 10:47:03 to_timestamp() and quarters
Previous Message Peter Eisentraut 2010-03-02 10:28:26 Re: function side effects