sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
博譞 翟's Avatar

about the pstate node


Question posted by: 博譞 翟 (Guest) on November 11th, 2005 11:57 PM
Dear Sir:

I am trying to analyse the source code in " /backend/paser". And I am really puzzled about the node "PaserState",especially the meaning of p_namespace and p_joinlist!
Would you please explain it for me ?? Thank you !

your sincere zhai







---------------------------------
Do You Yahoo!?
启用电邮帐号,领会雅虎通[身临其境聊电影]的动感魅力,还有网络摄像头+雅虎通收音机等你来拿
1 Answer Posted
Tom Lane's Avatar
Guest - n/a Posts
#2: Re: about the pstate node

=?gb2312?q?=B2=A9=D7X=20=B5=D4?= <powerzbx@yahoo.com.cn> writes:[color=blue]
> I am trying to analyse the source code in " /backend/paser". And I am really puzzled about the node "PaserState",especially the meaning of p_namespace and p_joinlist![/color]

p_namespace is a list of the FROM items (RangeTblRef's or JoinExpr's)
whose fields can validly be referenced from the current point in the
query. We alter it while scanning the ON clause of a JOIN, for example,
because the ON clause is only allowed to refer to fields from the JOIN's
input tables. p_joinlist has the same structure but is a list of all
the FROM items that the planner must join to execute the query.

Usually the final states of p_namespace and p_joinlist are the same, but
there are special cases where items get entered into only one list or the
other (mostly for NEW and OLD in rules, IIRC).

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

 
Not the answer you were looking for? Post your question . . .
196,831 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 196,831 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors