Re: ProjectSet

From: David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>
To: Oliver Kohll <oliver(at)agilechilli(dot)com>
Cc: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: ProjectSet
Date: 2018-08-02 12:21:31
Message-ID: CAKJS1f9pWUwxaD+0kxOOUuwaBcpGQtCKi3DKE8ob_uHN-JTJhw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2 August 2018 at 21:17, Oliver Kohll <oliver(at)agilechilli(dot)com> wrote:
> Is there an explanation of ProjectSet anywhere?

Plan node types and what they each do are not very well documented
outside of the source code.

ProjectSet appears when the SELECT or ORDER BY clause of the query.
They basically just execute the set-returning function(s) for each
tuple until none of the functions return any more records.

Simple Example:

EXPLAIN SELECT generate_series(1,2);
QUERY PLAN
-------------------------------------------------
ProjectSet (cost=0.00..5.02 rows=1000 width=4)
-> Result (cost=0.00..0.01 rows=1 width=0)
(2 rows)

--
David Rowley http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

  • ProjectSet at 2018-08-02 09:17:22 from Oliver Kohll

Responses

Browse pgsql-general by date

  From Date Subject
Next Message rihad 2018-08-02 12:38:04 ERROR: found xmin 54230249 from before relfrozenxid 61349053
Previous Message ik 2018-08-02 09:32:26 Re: Adding terminal title support for psqlrc