/usr/share/doc/aolserver4-nspostgres/README is in aolserver4-nspostgres 4.5+20110709-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | What is this?
------------
This module implements a simple AOLserver database services driver. A
database driver is a module which interfaces between the AOLserver
database-independent nsdb module and the API of a particular DBMS. A
database driver's job is to open connections, send SQL statements, and
translate the results into the form used by nsdb. In this case, the
driver is for the PostgreSQL ORDBMS from The PostgreSQL Global Development
Group. This is the official driver for the OpenACS project. PostgreSQL can be
downloaded and installed on most Unix systems. To use this driver, you
must have PostgreSQL installed on your system. For more information on
PostgreSQL or to download the code, open:
http://www.postgresql.org
How does it work?
----------------
Driver modules look much like ordinary AOLserver modules but are
loaded differently. Instead of being listed with other modules in the
[ns/server/<server-name>/modules] configuration section, a database
driver is listed in the [ns/db/drivers] section and nsdb does
the loading. The database driver initialization function normally does
little more than call the nsdb Ns_DbRegisterDriver() function with an
array of pointers to functions. The functions are then later used by
nsdb to open database connections and send and process queries. This
architecture is much like ODBC on Windows. In addition to open,
select, and getrow functions, the driver also provides system catalog
functions and a function for initializing a virtual server. The
virtual server initialization function is called each time nsdb is
loaded into a virtual server. In this case, the server initialization
function, Ns_PgServerInit, adds the "ns_pg" Tcl command to the server's
Tcl interpreters which can be used to fetch information about an active
PostgreSQL connection in a Tcl script.
Contributors to this file include:
Jim Lynch <jim@jam.sessionsnet.org>
Don Baccus <dhogaza@pacifier.com>
Lamar Owen <lamar.owen@wgcr.org>
Jan Wieck <wieck@debis.com>
Keith Pasket (SDL/USU)
Scott Cannon, Jr. (SDL/USU)
Dan Wickstrom <danw@rtp.ericsson.se>
Scott S. Goodwin <scott@scottg.net>
Original example driver by Jim Davidson
DEVELOPER'S GUIDE:
Run 'make help' for developer information.
See the Makefile for further information on building this module.
Note additions to build system (made in 2007):
make POSTGRES=SEPARATELY PGINC=... PGLIB=...
make POSTGRES=PG_CONFIG
make POSTGRES=PG_CONFIG PG_CONFIG=/path/to/pg_config
NOTE NOTE NOTE!! As of aolserver-4.5.x, the variable INST is used for
a different purpose than it used to be, so DO NOT set it to the installation
dir!!
|