Unix Technical Forum

parsenodes vs. primnodes

This is a discussion on parsenodes vs. primnodes within the pgsql Hackers forums, part of the PostgreSQL category; --> If something from primnodes.h (XmlExpr) needs something from parsenodes.h (TypeName), should I just move the former to the latter, ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-12-2008, 06:47 AM
Peter Eisentraut
 
Posts: n/a
Default parsenodes vs. primnodes

If something from primnodes.h (XmlExpr) needs something from
parsenodes.h (TypeName), should I just move the former to the latter,
or is there some major semantic dividing line between the two? Or
maybe TypeName should really be a primnode?

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-12-2008, 06:47 AM
Tom Lane
 
Posts: n/a
Default Re: parsenodes vs. primnodes

Peter Eisentraut <peter_e@gmx.net> writes:
> If something from primnodes.h (XmlExpr) needs something from
> parsenodes.h (TypeName), should I just move the former to the latter,
> or is there some major semantic dividing line between the two? Or
> maybe TypeName should really be a primnode?


Anything in primnodes should never need a TypeName. Post-parse-analysis
representation of type info is as a pg_type Oid. If you think you need
something else, let's have a discussion about why. (Perhaps you need to
split XmlExpr into two different node types, one for raw grammar output
and one for parse-analysis output?)

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:19 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com