(April 7th, Koichi Suzuki)
Because Postgres-XC inherits most of the spec from PostgreSQL, it is reasonable to prepare the reference manual using original PostgreSQL SGML files.
With PostgreSQL document resource, we can build the following documents:
Target should be as follows:
In the case of 3), we can embedd international characters like Japanese.
We should be careful to make it easier to merge with later version of PostgreSQL SGML files. To do this, we can embed special "TAG" to distinguish what is common, what is PostgreSQL-specific and what is Postgres-XC specific. Also, we may want to distinguish translation to different languages.
To make it easier to handle as an external tool, we can build dedicated (but somewhat general) tool to select what tags to be included. At present, the format is
...
<para>
</para>
You can nest this tag. With the nest, you can include multiple translations in a single file.
This can be handled by a command makesgml, which will be placed at postgres-xc/doc/tools.
Makesgml can be invoked like
makesgml -i _inf_ -o _outf_ -I _include_tag_ ... -E _exclude_tag_ ...
Each argument is optional and order of the argument is arbitrary. If you omit -i
option, it will read from stdin. If -o
is omitted, it will write to stdout. If input file include unspecified tags in the arguments, it will be treated as specified -E
.
All the sgml files from original PostgreSQL tarball will be renamed to sgmlin. Then it will be filtered by makesgml and fed to original document build scripts.
When building pdf/ps file, we need JadeTeX. Because the document consists of huge number of references, we need to expand the configuration. This can be done by editing texmf.cnf file, typically placed at /etc/texmf.
So far, I've modified two configuration parameters as follows:
hash_extra = 50000
hash_size.mpost = 120000