summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-08-30 21:25:27 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-08-30 21:25:27 +0000
commit8226f503ef15eb1d36f37e8cfd11e81db3e831d9 (patch)
treebfa1e47eec14dabae376f5fbd4aa3c023e64021e
parentc7040429e7ab19490c2e292e6b6ca01ef551b909 (diff)
downloadpostgresql-8226f503ef15eb1d36f37e8cfd11e81db3e831d9.tar.gz
Rather than referring to src/tutorial/README, put the build instructions
for the tutorial files right here.
-rw-r--r--doc/src/sgml/query.sgml17
1 files changed, 13 insertions, 4 deletions
diff --git a/doc/src/sgml/query.sgml b/doc/src/sgml/query.sgml
index bbf5c7a780..7e7ad49492 100644
--- a/doc/src/sgml/query.sgml
+++ b/doc/src/sgml/query.sgml
@@ -1,5 +1,5 @@
<!--
-$PostgreSQL: pgsql/doc/src/sgml/query.sgml,v 1.37 2004/08/08 21:33:11 tgl Exp $
+$PostgreSQL: pgsql/doc/src/sgml/query.sgml,v 1.38 2004/08/30 21:25:27 tgl Exp $
-->
<chapter id="tutorial-sql">
@@ -28,9 +28,18 @@ $PostgreSQL: pgsql/doc/src/sgml/query.sgml,v 1.37 2004/08/08 21:33:11 tgl Exp $
<para>
Examples in this manual can also be found in the
<productname>PostgreSQL</productname> source distribution
- in the directory <filename>src/tutorial/</filename>. Refer to the
- <filename>README</filename> file in that directory for how to use
- them. To start the tutorial, do the following:
+ in the directory <filename>src/tutorial/</filename>. To use those
+ files, first change to that directory and run <application>make</>:
+
+<screen>
+<prompt>$</prompt> <userinput>cd <replaceable>....</replaceable>/src/tutorial</userinput>
+<prompt>$</prompt> <userinput>make</userinput>
+</screen>
+
+ This creates the scripts and compiles the C files containing user-defined
+ functions and types. (You must use GNU make for this --- it may be named
+ something different on your system, often <application>gmake</>.)
+ Then, to start the tutorial, do the following:
<screen>
<prompt>$</prompt> <userinput>cd <replaceable>....</replaceable>/src/tutorial</userinput>