README for the database directories
$Id: README,v 1.5 2003/08/05 19:56:02 pcxuser Exp $

createdb.psql is always the current version of the database
it is for creating new databases by the install scripts
each database version has it's own directory
1.4
1.5
2.0
Inside the directory:
			The first three files are to setup a database
schema-functions.????	Database tables, functions and structure 
data.????		Default data in tables
system_reports.????	the system level reports
upgrade.????		the sql statments needed to upgrade DB
upgradedb		A script to upgrade from the last DB version to this one
report_export		this script will pull the system level reports from a
			database and create system_reports.psql
report_creation		This script clears the system level reports and 
			inserts the ones in system_reports.psql

To create the top level createdb.psql file just cat together the 
schema-functions.psql, data.psql and system-reports.psql files.

schema-functions.psql must be first and the other two can come in any order.

Make sure that all stored procedures are being created as their full name even
though they will be truncated internally by postgres since the stored 
procedures during creation are referencing by full name which will cause
issues if postgre didn't know it by that name when it created it.


******** NOTE:

If you dumped a PostgreSQL database before PostgreSQL 7.3 run the 
fixupDBDump.pl script to fix the function names.  Earlier versions of 
PostgreSQL truncated the function names, yet they were being referenced by 
their full name in calling functions which will cause your import to have
issues.

Usage:

./fixupDBDump.pl dumpfile.psql

where dumpfile.psql is the xiwa database dumped by pg_dump, etc.

