I've applied the attached patch to CVS HEAD. It makes a few more SQL statement references into cross-references and makes some other minor improvements to the documentation.
-Neil