Thread: NODE

NODE

From
Ravi Kiran
Date:
hi, 

I am going through the hashjoin algorithm in postgres. I find a function ExecHashjoin , which is called each time a new tuple is required by the hash join Node.

could someone explain what exactly node mean in  postgres. 

Thanks

Re: NODE

From
Adrian Klaver
Date:
On 01/05/2015 11:27 AM, Ravi Kiran wrote:
> hi,
>
> I am going through the hashjoin algorithm in postgres. I find a function
> ExecHashjoin , which is called each time a new tuple is required by the
> hash join *Node.*
> *
> *
> could someone explain what exactly node mean in  postgres.

I believe a good place to start is the README:


http://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/backend/executor/README;h=8afa1e3e4a7596475cbf19a76c88d48a04aeef02;hb=HEAD

>
> Thanks


--
Adrian Klaver
adrian.klaver@aklaver.com


Re: NODE

From
Craig Ringer
Date:
On 01/06/2015 03:27 AM, Ravi Kiran wrote:
> *
> *
> could someone explain what exactly node mean in  postgres.

You can think of it like a simple abstract base class that everything
else extends.

Lots of PostgreSQL is pseudo-object-oriented, so you'll see this pattern
around a fair bit.

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


Re: NODE

From
Craig Ringer
Date:
On 01/07/2015 09:08 PM, Craig Ringer wrote:
> You can think of it like a simple abstract base class that everything
> else extends.

Ahem. Every other parse/plan tree node, that is.

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