postgresql/src/tutorial
Bruce Momjian 344190b7ef Fixup for src/tutorial/func.c and src/tutorial/func.source
Removed char16 and replaced with an example using Point
as suggested by Tom Lane.  The dept field was changed to
the cubicle field denoting the row(x) and column(y) of
the employee's cube in the corporate jungle.  The C function
builds a 'compromise' cubicle from two suggested ones.

I'll try and patchup the documentation next.

Clark
1999-03-14 15:22:15 +00:00
..
Makefile From: Darren King <darrenk@insightdist.com> 1998-03-01 04:52:59 +00:00
README From: Darren King <darrenk@insightdist.com> 1998-03-01 04:52:59 +00:00
advanced.source From: Darren King <darrenk@insightdist.com> 1998-02-28 23:37:10 +00:00
basics.source Typo changes in tests/ examples. 1997-06-25 19:59:57 +00:00
beard.c Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
complex.c Renaming cleanup, no pgindent yet. 1998-09-01 03:29:17 +00:00
complex.source From: Darren King <darrenk@insightdist.com> 1998-03-01 04:52:59 +00:00
funcs.c Fixup for src/tutorial/func.c and src/tutorial/func.source 1999-03-14 15:22:15 +00:00
funcs.source Fixup for src/tutorial/func.c and src/tutorial/func.source 1999-03-14 15:22:15 +00:00
syscat.source Fix spelling of "including 1998-03-20 04:12:25 +00:00

README

This directory contains SQL tutorial scripts.  To look at them, first do a
	% make
to compile all the scripts and C files for the user-defined functions
and types.  (make needs to be GNU make and may be named something
different on your system)

Then, run psql with the -s flag:
	% psql -s

Welcome to the POSTGRESQL interactive sql monitor:
  Please read the file COPYRIGHT for copyright terms of POSTGRESQL

   type \? for help on slash commands
   type \q to quit
   type \g or terminate with semicolon to execute query
 You are currently connected to the database: jolly

jolly==>

From within psql, you can try each individual script file by using
the \i <filename> psql command.