Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Re: Explain XML...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 9595 of 11009
Post > Topic >>

Re: Explain XML patch

by stark@[EMAIL PROTECTED] (Gregory Stark) Jul 1, 2008 at 11:18 AM

I'm reading through the Explain XML patch. Just a couple of quick
observations:

There are a few whitespace oddities which like:

  	switch (nodeTag(plan))
  	{
  		case T_IndexScan:
+ 		{
+ 			StringInfo index;
+ 			index = makeStringInfo();

+ appendStringInfo(index, "name=\"%s\"",
explain_get_index_name(((IndexScan *) plan)->indexid)); 


I suspect this is actually introduced by the mail archiving software.
Something to beware of, if you have locally archived copies of the emails
it's
probably better to use those to extract patches :(


Also, this change is bogus:

  	{"without", WITHOUT, UNRESERVED_KEYWORD},
  	{"work", WORK, UNRESERVED_KEYWORD},
  	{"write", WRITE, UNRESERVED_KEYWORD},
! 	{"xml", XML_P, UNRESERVED_KEYWORD},
  	{"xmlattributes", XMLATTRIBUTES, COL_NAME_KEYWORD},
  	{"xmlconcat", XMLCONCAT, COL_NAME_KEYWORD},
  	{"xmlelement", XMLELEMENT, COL_NAME_KEYWORD},
--- 415,422 ----
  	{"without", WITHOUT, UNRESERVED_KEYWORD},
  	{"work", WORK, UNRESERVED_KEYWORD},
  	{"write", WRITE, UNRESERVED_KEYWORD},
! 	{"xml", XML, UNRESERVED_KEYWORD},
! 	{"xmlp", XML_P, UNRESERVED_KEYWORD},
  	{"xmlattributes", XMLATTRIBUTES, COL_NAME_KEYWORD},
  	{"xmlconcat", XMLCONCAT, COL_NAME_KEYWORD},
  	{"xmlelement", XMLELEMENT, COL_NAME_KEYWORD},


Just use the existing XML_P keyword. The "_P" just stands for "parser" to
disambiguate it (I'm not sure a bison keyword could conflict with
anything...
but anyways...).



-- 
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com
  Ask me about EnterpriseDB's 24x7 Postgres sup****t!

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 1 Posts in Topic:
Re: Explain XML patch
stark@[EMAIL PROTECTED]   2008-07-01 11:18:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 8:04:47 CST 2008.