Section: Maintenance Commands (8)Updated: Harold TayLocal indexUp
snprimedb - feed the sn database.
reads records from its standard input and enters them into the database.
The database is appended to; if you want to start a new database,
you would delete the database files
.chain, .table, .newsgroup
before running this program.
The main purpose of
is to rebuild the ID database. Then its input is usually obtained
If the option
is given, simply initialize the database files if they do not exist,
Input lines are of the format
newsgroup id serial
is the newsgroup the article may be found in,
is its message id, and
is the local serial number of that article in that newsgroup.
is the special name
then the whole line is ignored.
You will need to be root or the owner of /var/spool/sn to do this.
does not check to see that the articles really exist. Also the size
of the hash table is fixed at compile time.
Under degenerate conditions, the hash table file
(see below) could
grow very large, with reclaimed space remaining unused. This is due
to the very simple file space allocator, which doesn't know how to
coalesce adjacent free areas. It doesn't know how to split them either.
The allocator assumes that the shape of the distribution of record lengths
remains quite constant over time.
The hash table database doesn't make any attempt to reduce its
footprint. This should be acceptable, since the database is shared.
If this is set and is not empty, the value is used in place of
the default news spool directory.
uses this file as the index of the hash table, and ...
as the hash chains, and ...
to attach an integer identifier to each newsgroup name.
This file is a human-readable flat text file.