
              The Postgres SIGMOD Video Demo

1.  What is it?

These scripts are the query scripts used in the 1991 Postgres demo video
shown at the SIGMOD conference in Denver, Colorado.  This demo includes
queries featuring

o  Standard relational access...................Scripts 1-4
o  User-defined functions and ADT's.............5-7
o  Spatial queries and spatial indices..........8-10
o  The Postgres instance-level rule system......11-12 
o  The Postgres view system.....................13-19
o  The Postgres class versioning system.........20-28
o  Postgres query language functions............29-35

Views, versions, and query language functions are implemented using
Postgres query rewrite rules.

2.  Populating the Video Demo

The Postgres Video Demo is in the directory 

~postgres/video

Assuming you have a Postmaster running, you should change directory to the
video directory and execute the following commands:

% createdb video
% monitor video

This will put you in the Postgres Terminal Monitor.  Once you are there,
execute the command

* \i set-up-1.pq

which will set up the initial databases, etc.  An R-Tree index is defined
in this step, which may take from five minutes to a half hour to execute,
depending on the speed of your machine.

3.  Running the Video Demo

Once the video demo population script completes, you may run the demo
scripts themselves from the monitor with the following command:

* \i script-<nn>

This will display the script, and occasionally execute it.  To execute a 
script, type

* \g

(You will know that a script has executed if you see the message
"Query sent to backend is...")  For on-line help in the Monitor, type

* \h

and for more info on the Monitor, createdb, destroydb, etc, see the Postgres
Reference Manual.
