diff --git a/src/backend/executor/execTuples.c b/src/backend/executor/execTuples.c
index 9fe975786639d0e3300312d5fb7470ddb6361bee..a1fa78ad3bd1bdfd82fa6c4af0daa2e5254a56cd 100644
--- a/src/backend/executor/execTuples.c
+++ b/src/backend/executor/execTuples.c
@@ -14,7 +14,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/executor/execTuples.c,v 1.4 1996/12/07 04:37:06 momjian Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/executor/execTuples.c,v 1.5 1996/12/11 00:26:38 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -939,6 +939,7 @@ ExecTypeFromTL(List *targetList)
 	    TupleDescInitEntry(typeInfo,
 			       resdom->resno,
 			       resdom->resname,
+			       /* fix for SELECT NULL ... */
 			       get_id_typname(restype?restype:UNKNOWNOID),
 			       0,
 			       false);
diff --git a/src/man/abort.l b/src/man/abort.l
index c4aea44e8264057bd4aae31773b67a881c76c796..2680493a65cb114f342627c8e317ac87fcf4727d 100644
--- a/src/man/abort.l
+++ b/src/man/abort.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/abort.l,v 1.1 1996/11/14 10:15:07 scrappy Exp $
-.TH ABORT SQL 01/23/93 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/abort.l,v 1.2 1996/12/11 00:26:52 momjian Exp $
+.TH ABORT SQL 01/23/93 PostgreSQL PostgreSQL
 .\" XXX This .XA has to go after the .TH so that the index page number goes
 .\"	in the right place...
 .SH Abort
diff --git a/src/man/alter_table.l b/src/man/alter_table.l
index 1a4cb82aa2052a4622b987086abefd319c1ace61..5b055649f3fd469a39c1d5bf5bdbd176fc9e6641 100644
--- a/src/man/alter_table.l
+++ b/src/man/alter_table.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/alter_table.l,v 1.1 1996/11/14 10:15:09 scrappy Exp $
-.TH "ALTER TABLE" SQL 11/5/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/alter_table.l,v 1.2 1996/12/11 00:26:55 momjian Exp $
+.TH "ALTER TABLE" SQL 11/5/95 PostgreSQL PostgreSQL
 .SH NAME
 alter table \(em add attributes to a class
 .SH SYNOPSIS
diff --git a/src/man/begin.l b/src/man/begin.l
index 6f11a4bae786110a57e60f3b37b9a8d445877a37..e63e09b1c9a05b0685472ff7a40130d8fb34edc7 100644
--- a/src/man/begin.l
+++ b/src/man/begin.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/begin.l,v 1.1 1996/11/14 10:15:11 scrappy Exp $
-.TH BEGIN SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/begin.l,v 1.2 1996/12/11 00:26:59 momjian Exp $
+.TH BEGIN SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 begin \(em begins a transaction
 .SH SYNOPSIS
diff --git a/src/man/built-in.3 b/src/man/built-in.3
index af50320071de8ad69b167eaf8933afb2aaed719d..3a667260b8ecf2f399ede6c86daeb32edec36745 100644
--- a/src/man/built-in.3
+++ b/src/man/built-in.3
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/built-in.3,v 1.2 1996/11/15 17:55:26 momjian Exp $
-.TH BUILT-INS INTRO 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/built-in.3,v 1.3 1996/12/11 00:27:02 momjian Exp $
+.TH BUILT-INS INTRO 11/05/95 PostgreSQL PostgreSQL
 .SH "DESCRIPTION"
 This section describes the data types, functions and operators
 available to users in Postgres as it is distributed.
diff --git a/src/man/catalogs.3 b/src/man/catalogs.3
index 0a1b93dac0c809e7a8a24fb1e6a9b216a4ad18d5..b306c2b66dc570fafea14ca5110dde516c566929 100644
--- a/src/man/catalogs.3
+++ b/src/man/catalogs.3
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/catalogs.3,v 1.1 1996/11/14 10:15:20 scrappy Exp $
-.TH "SYSTEM CATALOGS" INTRO 03/13/94 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/catalogs.3,v 1.2 1996/12/11 00:27:04 momjian Exp $
+.TH "SYSTEM CATALOGS" INTRO 03/13/94 PostgreSQL PostgreSQL
 .SH "Section 7 \(em System Catalogs"
 .de LS
 .PP
diff --git a/src/man/cleardbdir.1 b/src/man/cleardbdir.1
index 6df6ffe8be3a6fcd50f5a7f37c50b72a09cd4dad..09c78544b4a12c6fe0ce5473f0d78298fc154b75 100644
--- a/src/man/cleardbdir.1
+++ b/src/man/cleardbdir.1
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/cleardbdir.1,v 1.1 1996/11/14 10:15:24 scrappy Exp $
-.TH CLEARDBDIR UNIX 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/cleardbdir.1,v 1.2 1996/12/11 00:27:05 momjian Exp $
+.TH CLEARDBDIR UNIX 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 cleardbdir \(em completely destroys all database files
 .SH SYNOPSIS
diff --git a/src/man/close.l b/src/man/close.l
index 4220d3120a9f3571cc5083ff831a1569efbe0943..9818ce984d3bd048d2d841286102829e76ed1961 100644
--- a/src/man/close.l
+++ b/src/man/close.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/close.l,v 1.1 1996/11/14 10:15:27 scrappy Exp $
-.TH CLOSE SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/close.l,v 1.2 1996/12/11 00:27:06 momjian Exp $
+.TH CLOSE SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 close \(em close a cursor
 .SH SYNOPSIS
diff --git a/src/man/cluster.l b/src/man/cluster.l
index 38707d21416359cf4a31017bd39721bd623fe59a..86d50d832c7544de3e33fcd39788c85610ef60dd 100644
--- a/src/man/cluster.l
+++ b/src/man/cluster.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/cluster.l,v 1.1 1996/11/14 10:15:32 scrappy Exp $
-.TH CLUSTER SQL 01/23/93 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/cluster.l,v 1.2 1996/12/11 00:27:07 momjian Exp $
+.TH CLUSTER SQL 01/23/93 PostgreSQL PostgreSQL
 .SH NAME
 cluster \(em give storage clustering advice to Postgres
 .SH SYNOPSIS
diff --git a/src/man/commit.l b/src/man/commit.l
index 5078816a85db2630153074208b1506bf94c2cff9..2a5b3ebbe8ae02e2159b653be733b60f21b0c302 100644
--- a/src/man/commit.l
+++ b/src/man/commit.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/commit.l,v 1.1 1996/11/14 10:15:36 scrappy Exp $
-.TH COMMIT SQL 01/23/93 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/commit.l,v 1.2 1996/12/11 00:27:08 momjian Exp $
+.TH COMMIT SQL 01/23/93 PostgreSQL PostgreSQL
 .SH NAME
 commit \(em commit the current transaction 
 .SH SYNOPSIS
diff --git a/src/man/copy.l b/src/man/copy.l
index 9a0499ddc6fe1f26a72f0f29d74148fd0e55e0cb..cdc7a9656110d1968f6cc6a999bdcb3c8e16f8c3 100644
--- a/src/man/copy.l
+++ b/src/man/copy.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/copy.l,v 1.1 1996/11/14 10:15:39 scrappy Exp $
-.TH COPY SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/copy.l,v 1.2 1996/12/11 00:27:09 momjian Exp $
+.TH COPY SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 copy \(em copy data to or from a class from or to a Unix file.
 .SH SYNOPSIS
@@ -101,7 +101,7 @@ attributes are output as \\N.
 A literal backslash character is output as two consecutive backslashes.
 A literal tab character is represented as a backslash and a tab.
 A literal newline character is represented as a backslash and a newline.
-When loading ASCII data not generated by Postgres95, you will need to
+When loading ASCII data not generated by PostgreSQL, you will need to
 convert backslash characters (\\) to double-backslashes (\\\\) so
 they are loaded properly.
 .SS "BINARY COPY FORMAT"
diff --git a/src/man/create_aggregate.l b/src/man/create_aggregate.l
index a1b4e4db257defa18ee8c8afb44df7a1c329fffc..c3b5bb70a889c4132b3e3ef30b71e698ed3be8b8 100644
--- a/src/man/create_aggregate.l
+++ b/src/man/create_aggregate.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/create_aggregate.l,v 1.3 1996/12/04 14:23:16 momjian Exp $
-.TH "CREATE AGGREGATE" SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/create_aggregate.l,v 1.4 1996/12/11 00:27:11 momjian Exp $
+.TH "CREATE AGGREGATE" SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 create aggregate \(em define a new aggregate
 .SH SYNOPSIS
diff --git a/src/man/create_database.l b/src/man/create_database.l
index f7e5be29b70850c88a1079e15ba39effddfe60d0..50d936a1aaad84d613abc8378978d56535d7cecd 100644
--- a/src/man/create_database.l
+++ b/src/man/create_database.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/create_database.l,v 1.1 1996/11/14 10:15:45 scrappy Exp $
-.TH "CREATE DATABASE" SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/create_database.l,v 1.2 1996/12/11 00:27:12 momjian Exp $
+.TH "CREATE DATABASE" SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 create database \(em create a new database
 .SH SYNOPSIS
diff --git a/src/man/create_function.l b/src/man/create_function.l
index 69101eef4ff84ba9f2fc2a0a71e5ad014b3c4ab6..2f33ee4d988707c9fda9cab33ce25e2e8e14cfaf 100644
--- a/src/man/create_function.l
+++ b/src/man/create_function.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/create_function.l,v 1.1 1996/11/14 10:15:48 scrappy Exp $
-.TH "CREATE FUNCTION" SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/create_function.l,v 1.2 1996/12/11 00:27:13 momjian Exp $
+.TH "CREATE FUNCTION" SQL 11/05/95 PostgreSQL PostgreSQL
 .SH "NAME"
 create function \(em define a new function
 .SH "SYNOPSIS"
diff --git a/src/man/create_index.l b/src/man/create_index.l
index a322865db505e020afdf4014e496e2904e80a170..586ec95867f273c78a322d24d7f0174b2a8a7a15 100644
--- a/src/man/create_index.l
+++ b/src/man/create_index.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/create_index.l,v 1.2 1996/11/16 05:45:56 momjian Exp $
-.TH "CREATE INDEX" SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/create_index.l,v 1.3 1996/12/11 00:27:14 momjian Exp $
+.TH "CREATE INDEX" SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 create index \(em construct a secondary index
 .SH SYNOPSIS
diff --git a/src/man/create_operator.l b/src/man/create_operator.l
index 37f0ff585ff300bfdcf180b7a5e616a11cda5906..02e9cf9aafae189e39549c445743302c6d1eabbc 100644
--- a/src/man/create_operator.l
+++ b/src/man/create_operator.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/create_operator.l,v 1.2 1996/11/30 04:56:18 momjian Exp $
-.TH "CREATE OPERATOR" SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/create_operator.l,v 1.3 1996/12/11 00:27:17 momjian Exp $
+.TH "CREATE OPERATOR" SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 create operator \(em define a new user operator
 .SH SYNOPSIS
diff --git a/src/man/create_rule.l b/src/man/create_rule.l
index 98c1ba02a2c0992019b545b48800a08059add643..b9a7a453be79f9cdba45807466a213f536d5295b 100644
--- a/src/man/create_rule.l
+++ b/src/man/create_rule.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/create_rule.l,v 1.1 1996/11/14 10:16:03 scrappy Exp $
-.TH "CREATE RULE" SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/create_rule.l,v 1.2 1996/12/11 00:27:18 momjian Exp $
+.TH "CREATE RULE" SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 create rule \(em define a new rule
 .SH SYNOPSIS
diff --git a/src/man/create_table.l b/src/man/create_table.l
index 4469f05dfe38c61099b551844647c21f8af94071..73838af62d69fa44f47c7bdc28ba027c56ee7dbb 100644
--- a/src/man/create_table.l
+++ b/src/man/create_table.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/create_table.l,v 1.1 1996/11/14 10:16:08 scrappy Exp $
-.TH "CREATE TABLE" SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/create_table.l,v 1.2 1996/12/11 00:27:19 momjian Exp $
+.TH "CREATE TABLE" SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 create table \(em create a new class
 .SH SYNOPSIS
diff --git a/src/man/create_type.l b/src/man/create_type.l
index 014e5241e64579338d8d32f5e2fdead811fad90f..de5c6777d4a1636908dd5b9b3398e446969d1703 100644
--- a/src/man/create_type.l
+++ b/src/man/create_type.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/create_type.l,v 1.1 1996/11/14 10:16:12 scrappy Exp $
-.TH "CREATE TYPE" SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/create_type.l,v 1.2 1996/12/11 00:27:20 momjian Exp $
+.TH "CREATE TYPE" SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 create type \(em define a new base data type 
 .SH SYNOPSIS
diff --git a/src/man/create_version.l b/src/man/create_version.l
index 7aa53058dfd0b17c9d4b67ac7e06694af016f8f9..79362445ba16ce975ee62169e5cd07105320c824 100644
--- a/src/man/create_version.l
+++ b/src/man/create_version.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/create_version.l,v 1.1 1996/11/14 10:16:15 scrappy Exp $
-.TH "CREATE VERSION" SQL 01/23/93 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/create_version.l,v 1.2 1996/12/11 00:27:21 momjian Exp $
+.TH "CREATE VERSION" SQL 01/23/93 PostgreSQL PostgreSQL
 .SH NAME
 create version \(em construct a version class 
 .SH SYNOPSIS
diff --git a/src/man/create_view.l b/src/man/create_view.l
index 1b0bed76e1a1e6e22c15f4220326007f05c6651a..8462fd592131b8d2c16fd86cc431a1c91f7e5c7d 100644
--- a/src/man/create_view.l
+++ b/src/man/create_view.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/create_view.l,v 1.1 1996/11/14 10:16:17 scrappy Exp $
-.TH "CREATE VIEW" SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/create_view.l,v 1.2 1996/12/11 00:27:22 momjian Exp $
+.TH "CREATE VIEW" SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 create view \(em construct a virtual class
 .SH SYNOPSIS
diff --git a/src/man/createdb.1 b/src/man/createdb.1
index e3ea1b86d2c47d67b70ec47fe31288f4366c7e75..99c6dcb9297e879555714ba972d94550b30a23f0 100644
--- a/src/man/createdb.1
+++ b/src/man/createdb.1
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/createdb.1,v 1.1 1996/11/14 10:16:20 scrappy Exp $
-.TH CREATEDB UNIX 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/createdb.1,v 1.2 1996/12/11 00:27:23 momjian Exp $
+.TH CREATEDB UNIX 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 createdb \(em create a database
 .SH SYNOPSIS
diff --git a/src/man/createuser.1 b/src/man/createuser.1
index 8cc5cb1f461ab511ba7da7d3268682ae632a8135..114518a3e45a0ae5769f34efb34d703b0710b6d8 100644
--- a/src/man/createuser.1
+++ b/src/man/createuser.1
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/createuser.1,v 1.1 1996/11/14 10:16:23 scrappy Exp $
-.TH CREATEUSER UNIX 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/createuser.1,v 1.2 1996/12/11 00:27:25 momjian Exp $
+.TH CREATEUSER UNIX 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 createuser \(em create a Postgres user
 .SH SYNOPSIS
diff --git a/src/man/delete.l b/src/man/delete.l
index fa3b254d4bd33cdedfcfca28055a03613d67fe6e..61340a7845724695e2a4cbae5a61be2f049a597d 100644
--- a/src/man/delete.l
+++ b/src/man/delete.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/delete.l,v 1.1 1996/11/14 10:16:29 scrappy Exp $
-.TH DELETE SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/delete.l,v 1.2 1996/12/11 00:27:26 momjian Exp $
+.TH DELETE SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 delete \(em delete instances from a class
 .SH SYNOPSIS
diff --git a/src/man/destroydb.1 b/src/man/destroydb.1
index ea49424545da56b5ac38aa980aa1c546cb0d881c..66dc5a30754973968b76609e3fb930f3288f6c26 100644
--- a/src/man/destroydb.1
+++ b/src/man/destroydb.1
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/destroydb.1,v 1.1 1996/11/14 10:16:32 scrappy Exp $
-.TH DESTROYDB UNIX 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/destroydb.1,v 1.2 1996/12/11 00:27:27 momjian Exp $
+.TH DESTROYDB UNIX 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 destroydb \(em destroy an existing database
 .SH SYNOPSIS
diff --git a/src/man/destroydb.l b/src/man/destroydb.l
index 283f604f5723bc7e6f96611c9d03285092e28221..249ec250da480be8456ed7a22ac6dae4ea6fe0be 100644
--- a/src/man/destroydb.l
+++ b/src/man/destroydb.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/destroydb.l,v 1.1 1996/11/14 10:16:35 scrappy Exp $
-.TH DESTROYDB SQL 01/23/93 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/destroydb.l,v 1.2 1996/12/11 00:27:33 momjian Exp $
+.TH DESTROYDB SQL 01/23/93 PostgreSQL PostgreSQL
 .SH NAME
 drop database \(em destroy an existing database
 .SH SYNOPSIS
diff --git a/src/man/destroyuser.1 b/src/man/destroyuser.1
index 6234776fd473ea3f10c3c218f85c88fae5c45ba7..c181a03226ef59e00da88fc6dab57349368bc00b 100644
--- a/src/man/destroyuser.1
+++ b/src/man/destroyuser.1
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/destroyuser.1,v 1.1 1996/11/14 10:16:39 scrappy Exp $
-.TH DESTROYUSER UNIX 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/destroyuser.1,v 1.2 1996/12/11 00:27:36 momjian Exp $
+.TH DESTROYUSER UNIX 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 destroyuser \(em destroy a Postgres user and associated databases
 .SH SYNOPSIS
diff --git a/src/man/drop.l b/src/man/drop.l
index ccf42efdf413f9ab9c10640db902e1f427858caf..84ed6edf0f147dd5a925de30d021a1347e1aaa8d 100644
--- a/src/man/drop.l
+++ b/src/man/drop.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/drop.l,v 1.1 1996/11/14 10:16:43 scrappy Exp $
-.TH "DROP TABLE" SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/drop.l,v 1.2 1996/12/11 00:27:37 momjian Exp $
+.TH "DROP TABLE" SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 drop table \(em destroy existing classes
 .SH SYNOPSIS
diff --git a/src/man/drop_aggregate.l b/src/man/drop_aggregate.l
index e7c277596046b5988bb5d0a92ad9c923c69a3598..7837dcb328ade3ca3e6e69695e8f46bb5d575a21 100644
--- a/src/man/drop_aggregate.l
+++ b/src/man/drop_aggregate.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/drop_aggregate.l,v 1.1 1996/11/14 10:16:47 scrappy Exp $
-.TH "DROP AGGREGATE" SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/drop_aggregate.l,v 1.2 1996/12/11 00:27:38 momjian Exp $
+.TH "DROP AGGREGATE" SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 drop aggregate \(em remove the definition of an aggregate
 .SH SYNOPSIS
diff --git a/src/man/drop_function.l b/src/man/drop_function.l
index f7a80358f22ac63a6c52d773805f223f66ba1e80..2f596d716eb8a0f6f816e6b4dfa75f4914f76202 100644
--- a/src/man/drop_function.l
+++ b/src/man/drop_function.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/drop_function.l,v 1.1 1996/11/14 10:16:53 scrappy Exp $
-.TH "DROP FUNCTION" SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/drop_function.l,v 1.2 1996/12/11 00:27:39 momjian Exp $
+.TH "DROP FUNCTION" SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 drop function \(em remove a user-defined C function 
 .SH SYNOPSIS
diff --git a/src/man/drop_index.l b/src/man/drop_index.l
index 5ad8aa16d926a70c399cf7b2664ca2d3d2373452..8f086047260fd8f236db719a19579c1bc14b6c65 100644
--- a/src/man/drop_index.l
+++ b/src/man/drop_index.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/drop_index.l,v 1.1 1996/11/14 10:17:01 scrappy Exp $
-.TH "DROP INDEX" SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/drop_index.l,v 1.2 1996/12/11 00:27:40 momjian Exp $
+.TH "DROP INDEX" SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 drop index \(em removes an index from Postgres
 .SH SYNOPSIS
diff --git a/src/man/drop_operator.l b/src/man/drop_operator.l
index 544a1e3fc9758613737703556d63b838de259d7e..b6814bf81f60cd9108eb55e486da03231462f89e 100644
--- a/src/man/drop_operator.l
+++ b/src/man/drop_operator.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/drop_operator.l,v 1.1 1996/11/14 10:17:04 scrappy Exp $
-.TH "DROP OPERATOR" SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/drop_operator.l,v 1.2 1996/12/11 00:27:41 momjian Exp $
+.TH "DROP OPERATOR" SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 drop operator \(em remove an operator from the system
 .SH SYNOPSIS
diff --git a/src/man/drop_rule.l b/src/man/drop_rule.l
index b57f7b9c8faddc928a94a214775e044b3d1e3740..f4f357fa960012c0797c55358c565c787899ee94 100644
--- a/src/man/drop_rule.l
+++ b/src/man/drop_rule.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/drop_rule.l,v 1.1 1996/11/14 10:17:07 scrappy Exp $
-.TH "DROP RULE" SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/drop_rule.l,v 1.2 1996/12/11 00:27:42 momjian Exp $
+.TH "DROP RULE" SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 drop rule \- removes a current rule from Postgres 
 .SH SYNOPSIS
diff --git a/src/man/drop_type.l b/src/man/drop_type.l
index 5899a2dea4872ea2c6a52d12a70fcb49f6dbe34d..07b91449a35b7c804aaaac79756272a4e3765ca5 100644
--- a/src/man/drop_type.l
+++ b/src/man/drop_type.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/drop_type.l,v 1.1 1996/11/14 10:17:09 scrappy Exp $
-.TH "DROP TYPE" SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/drop_type.l,v 1.2 1996/12/11 00:27:43 momjian Exp $
+.TH "DROP TYPE" SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 drop type \(em remove a user-defined type from the system catalogs
 .SH SYNOPSIS
diff --git a/src/man/end.l b/src/man/end.l
index 01b880e42b6be8f62d288a7009aa7cf5b487de11..4c16c8910f5f93e10539c9d77412dc1faca87772 100644
--- a/src/man/end.l
+++ b/src/man/end.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/end.l,v 1.1 1996/11/14 10:17:10 scrappy Exp $
-.TH END SQL 01/23/93 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/end.l,v 1.2 1996/12/11 00:27:44 momjian Exp $
+.TH END SQL 01/23/93 PostgreSQL PostgreSQL
 .SH NAME
 end \(em commit the current transaction 
 .SH SYNOPSIS
diff --git a/src/man/fetch.l b/src/man/fetch.l
index 02b06068ca4a195d77cacb1d9bb675934935648c..37d489ea0da5fdac40c097c25905997131762d14 100644
--- a/src/man/fetch.l
+++ b/src/man/fetch.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/fetch.l,v 1.1 1996/11/14 10:17:13 scrappy Exp $
-.TH FETCH SQL 01/23/93 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/fetch.l,v 1.2 1996/12/11 00:27:45 momjian Exp $
+.TH FETCH SQL 01/23/93 PostgreSQL PostgreSQL
 .SH NAME
 fetch \(em fetch instance(s) from a cursor
 .SH SYNOPSIS
diff --git a/src/man/grant.l b/src/man/grant.l
index a761893f7c0de366ba29ac91c2b4099583a93cb4..661571cc08e7fae4bb3893b90523cd363e1e4372 100644
--- a/src/man/grant.l
+++ b/src/man/grant.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/grant.l,v 1.1 1996/11/14 10:17:15 scrappy Exp $
-.TH GRANT SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/grant.l,v 1.2 1996/12/11 00:27:46 momjian Exp $
+.TH GRANT SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 grant \(em grant access control to a user or group
 .SH SYNOPSIS
diff --git a/src/man/initdb.1 b/src/man/initdb.1
index 57e829651c1557281fc43fcd1aa1c3833a663056..d52826c550b11bb10e3d096a47c5b72435b7e3cf 100644
--- a/src/man/initdb.1
+++ b/src/man/initdb.1
@@ -1,83 +1,248 @@
 .\" This is -*-nroff-*-
-.\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/initdb.1,v 1.1 1996/11/14 10:17:17 scrappy Exp $
-.TH INITDB UNIX 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/initdb.1,v 1.2 1996/12/11 00:27:47 momjian Exp $
+.TH INITDB UNIX 11/29/96 PostgreSQL PostgreSQL
 .SH NAME
-initdb \(em initalize the database templates and primary directories
+initdb \(em create a new Postgres database system
 .SH SYNOPSIS
 .BR "initdb"
 [\c
-.BR "-d"
+.BR "--pglib="\c
+.IR "directory"\c
 ]
 [\c
-.BR "-n"
+.BR "--pgdata="\c
+.IR "directory"\c
 ]
 [\c
-.BR "-r directory"
+.BR "--username="\c
+.IR "username"\c
 ]
 [\c
-.BR "-t"
+.BR "--template"\c
 ]
 [\c
-.BR "-u username"
+.BR "--noclean"\c
 ]
 [\c
-.BR "-v"
+.BR "--debug"\c
+]
+
+.BR "initdb"
+[\c
+.BR "-l"
+.IR "directory"\c
 ]
+[\c
+.BR "-r"
+.IR "directory"\c
+]
+[\c
+.BR "-u"
+.IR "username"\c
+]
+[\c
+.BR "-t"\c
+]
+[\c
+.BR "-n"\c
+]
+[\c
+.BR "-d"\c
+]
+
+
 .SH DESCRIPTION
 .IR Initdb
-sets up the initial template databases and is normally executed as
-part of the installation process.  The template database is created
-under the directory specified by the the environment variable 
-.SM PGDATA,
-or to a default specified at compile-time.  The template database
-is then 
-.BR vacuum ed.
+Creates a new Postgres database system.  A database system is a
+collection of databases that are all administered by the same Unix user
+and managed by a single postmaster.
 .PP
+Creating a database system consists of creating the directories in which
+the database data will live, generating the shared catalog tables 
+(tables that don't belong to any particular database), and
+creating the
+.IR template1
+database.  What is the 
+.IR template1
+database?  When you create a database, Postgres does it by copying
+everything from the
+.IR template1
+database.  It contains catalog tables filled in for things like the
+builtin types.
+.PP     
+After 
+.IR initdb
+creates the database, it 
+.BR vacuum 's
+it.
+.PP
+There are 3 ways to give parameters to 
+.IR initdb .
+First, you can use initdb command options.  Second, you can set environment
+variables before invoking initdb.  Third, you can have a program called
+.IR postconfig
+in your Unix command search path. 
 .IR Initdb
-is a shell script that invokes the backend server directly.  Hence, it
-must be executed by the Postgres super-user.
+invokes that program and the program writes 
+.IR initdb
+parameters to its standard output stream.
+.PP
+Command options always override parameters specified any other way.
+The values returned by
+.IR postconfig 
+override any environment variables, but your
+.IR postconfig 
+program may base its output on the environment variables if you want
+their values to be used.
+.PP
+The value that 
+.IR postconfig 
+outputs must have the format
+.PP
+    var1=value1 var2=value2 ...  
+.PP
+It can output nothing if it doesn't want to supply any parameters.
+The "varN" values are equal to the corresponding environment variable
+names.  For example, outputting "PGDATA=/tmp/postgres_test" has the
+same effect as invoking
+.IR initdb 
+with an environment variable called "PGDATA" whose value is
+"/tmp/postgres_test".
+.PP
+There are 3 parameters you must supply to initdb to tell it how to 
+create the database system:
+.PP
+1) Where are the files that make up Postgres?  Apart from files that
+have to go in particular directories because of their function, the
+files that make up the Postgres software were installed in a directory
+called the "pglib" directory.  An example of a file that will be found
+there that 
+.IR initdb
+needs is global1.bki.source, which contains all the information that goes
+into the shared catalog tables.  Use the 
+.BR --pglib
+(\c
+.BR -l )
+option or the 
+.BR PGLIB
+environment variable.
+.PP
+2) Where in your Unix filesystem do you want the database data to go?
+The top level directory is called the "pgdata" directory.  Use the
+.BR --pgdata 
+(\c
+.BR -d )
+option or the 
+.BR PGDATA
+environment variable.
+.PP
+3) Who will be the Postgres superuser for this database system?  The
+Postgres superuser is a Unix user that owns all files that store the database
+system and also owns the postmaster and backend processes that access them.
+Use the
+.BR --username
+(\c
+.BR -u )
+option or the 
+.BR PGUSER
+environment variable.  Or just let it default to you (the Unix user who
+runs
+.IR initdb ).
+Note that only the Unix superuser can create a database system with a
+different user as Postgres superuser.
+
+
+
 .PP
 .IR Initdb
 understands the following command-line options:
-.TP
-.BR "-d"
-Print debugging output from the backend server.  This option generates
-a tremendous amount of information.  This option also turns off the
-final vacuuming step.
-.TP
+
+.BR "--pglib="\c
+.IR "directory"
+.BR "-l"
+.IR "directory"
+
+Use the Postgres files in the specified directory, as explained above.
+
+.BR "--pgdata="\c
+.IR "directory"
+.BR "-r"
+.IR "directory"
+
+Put the database system in this directory, as explained above.
+
+.BR "--username="\c
+.IR "username"
+.BR "-u"
+.IR "username"
+
+Build the database system with the specified Unix user as the Postgres
+superuser for it, as explained above.
+
+.BR "--template"
+.BR "-t"
+
+Replace the
+.IR template1
+database in an existing database system, and don't touch anything else.
+This is useful when you need to upgrade your 
+.IR template1
+database using 
+.IR initdb
+from a newer release of Postgres, or when your 
+.IR template1
+database has become corrupted by some system problem.  Normally the
+contents of
+.IR template1
+remain constant throughout the life of the database system.  You can't
+destroy anything by running
+.IR initdb
+with the 
+.BR --template
+option.
+
+.BR "--noclean"
 .BR "-n"
+
 Run in \*(lqnoclean\*(rq mode.  By default, 
+when 
 .IR initdb
-cleans up (recursively unlinks) the data directory if any error
-occurs, which also removes any core files left by the backend server.
-This option inhibits any tidying-up.
-.TP
-.BR "-r directory"
-Use the specified data directory.
-.TP
-.BR "-t"
-Update template database only.
-.TP
-.BR "-u username"
-Run as the specified username.
-.TP
-.BR "-v"
-Produce verbose output, printing messages stating where the
-directories are being created, etc.
+determines that error prevent it from completely creating the database
+system, it removes any files it may have created before determining
+that it can't finish the job.  That includes any core files left by
+the programs it invokes.  This option inhibits any tidying-up and is
+thus useful for debugging.
+
+.BR "--debug"
+.BR "-d"
+
+Print debugging output from the bootstrap backend.  
+The bootstrap backend is the program 
+.IR initdb
+uses to create the catalog tables.  This option generates a tremendous
+amount of output.  It also turns off the final vacuuming step.
+
+
 .SH FILES
 .TP
-\&$PGDATA/base
-The location of global (shared) classes.
+postconfig
+(Somewhere in the Unix command search path (defined by the PATH environment
+variable)).  This is a program that specifies defaults for some of the
+command options.  See above.
 .TP
-\&$PGDATA/base/template1
-The location of the template database.
+PGLIB/global1.bki.source
+Contents for the shared catalog tables in the new database system.  This
+file is part of the Postgres software.
 .TP
-\&$PGDATA/files/{global1,local1_template1}.bki
-Command files used to generate the global and template databases,
-generated and installed by the initial compilation process.
+PGLIB/local1_template1.bki.source
+Contents for the template1 tables in the new database system.  This
+file is part of the Postgres software.
+
 .SH "SEE ALSO"
-createdb(1),
 vacuum(l),
-bki(files),
-template(files).
+bki(5),
+create_database(l),
+createuser(1),
+psql(1)
+
+
diff --git a/src/man/insert.l b/src/man/insert.l
index b6404c79d603236027372880b2ceb5d2f5288a9f..3334a2a863bcd2a946b9edf4bbb786c5d6a72b98 100644
--- a/src/man/insert.l
+++ b/src/man/insert.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/insert.l,v 1.1 1996/11/14 10:17:19 scrappy Exp $
-.TH INSERT SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/insert.l,v 1.2 1996/12/11 00:27:49 momjian Exp $
+.TH INSERT SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 insert \(em insert tuples to a relation
 .SH SYNOPSIS
diff --git a/src/man/ipcclean.1 b/src/man/ipcclean.1
index 40ea62354b20c008498657bbfb670618f8f78190..2851910d17b27199bb87fe16660d11cfe634e0cb 100644
--- a/src/man/ipcclean.1
+++ b/src/man/ipcclean.1
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/ipcclean.1,v 1.1 1996/11/14 10:17:22 scrappy Exp $
-.TH IPCCLEAN UNIX 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/ipcclean.1,v 1.2 1996/12/11 00:27:50 momjian Exp $
+.TH IPCCLEAN UNIX 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 ipcclean \(em clean up shared memory and semaphores from aborted backends
 .SH SYNOPSIS
diff --git a/src/man/large_objects.3 b/src/man/large_objects.3
index b39c3526538bdff5259dbaec8bed2bb904da3c80..944257a0c3ec5e2ced50f9e1e5ff017551f83d3e 100644
--- a/src/man/large_objects.3
+++ b/src/man/large_objects.3
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/large_objects.3,v 1.2 1996/11/15 17:55:29 momjian Exp $
-.TH "LARGE OBJECTS" INTRO 03/18/94 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/large_objects.3,v 1.3 1996/12/11 00:27:51 momjian Exp $
+.TH "LARGE OBJECTS" INTRO 03/18/94 PostgreSQL PostgreSQL
 .SH DESCRIPTION
 .PP
 In Postgres, data values are stored in tuples and individual tuples
@@ -259,7 +259,7 @@ library.
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/man/Attic/large_objects.3,v 1.2 1996/11/15 17:55:29 momjian Exp $
+ *    $Header: /cvsroot/pgsql/src/man/Attic/large_objects.3,v 1.3 1996/12/11 00:27:51 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
diff --git a/src/man/libpq.3 b/src/man/libpq.3
index f7e28712b6ed9daab651bba4ad2a0104ef0c6a6f..0eb77dd1cf2653cba7d257186e419cc1a53839d2 100644
--- a/src/man/libpq.3
+++ b/src/man/libpq.3
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/libpq.3,v 1.3 1996/11/27 13:49:44 momjian Exp $
-.TH LIBPQ INTRO 03/12/94 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/libpq.3,v 1.4 1996/12/11 00:27:53 momjian Exp $
+.TH LIBPQ INTRO 03/12/94 PostgreSQL PostgreSQL
 .SH DESCRIPTION
 Libpq is the programmer's interface to Postgres.  Libpq is a set of
 library routines that allows queries to pass to the Postgres backend and
diff --git a/src/man/listen.l b/src/man/listen.l
index cd065ff16e26877c579dedbd8a8a0f41189393c7..594dbcb618dff3ad647ac25e3c654f0bb383d599 100644
--- a/src/man/listen.l
+++ b/src/man/listen.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/listen.l,v 1.1 1996/11/14 10:17:28 scrappy Exp $
-.TH "LISTEN" SQL 03/12/94 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/listen.l,v 1.2 1996/12/11 00:27:54 momjian Exp $
+.TH "LISTEN" SQL 03/12/94 PostgreSQL PostgreSQL
 .SH NAME
 listen \(em listen for notification on a relation
 .SH SYNOPSIS
diff --git a/src/man/load.l b/src/man/load.l
index f813cee08d95068f80e3e190c6d865d4ca43ef7c..f0d5eccbd7734b2dbd1e87cdf1fb50546ef0575f 100644
--- a/src/man/load.l
+++ b/src/man/load.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/load.l,v 1.1 1996/11/14 10:17:30 scrappy Exp $
-.TH LOAD SQL 01/23/93 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/load.l,v 1.2 1996/12/11 00:27:55 momjian Exp $
+.TH LOAD SQL 01/23/93 PostgreSQL PostgreSQL
 .SH NAME
 load \(em dynamically load an object file
 .SH SYNOPSIS
diff --git a/src/man/monitor.1 b/src/man/monitor.1
index d762113438db5383539ea735460c76f8f0028018..7abba7be6399140cb97b081f4b98a489360618f0 100644
--- a/src/man/monitor.1
+++ b/src/man/monitor.1
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/monitor.1,v 1.1 1996/11/14 10:17:32 scrappy Exp $
-.TH MONITOR UNIX 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/monitor.1,v 1.2 1996/12/11 00:27:56 momjian Exp $
+.TH MONITOR UNIX 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 monitor \(em run the interactive terminal monitor
 .SH SYNOPSIS
diff --git a/src/man/notify.l b/src/man/notify.l
index 24470d594fb6d530a0a5d096961796deb2759e39..aa659b97631d0ac8887bb42e813c5646f453ce9c 100644
--- a/src/man/notify.l
+++ b/src/man/notify.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/notify.l,v 1.1 1996/11/14 10:17:38 scrappy Exp $
-.TH "NOTIFY" SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/notify.l,v 1.2 1996/12/11 00:27:57 momjian Exp $
+.TH "NOTIFY" SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 notify \(em signal all frontends and backends listening on a class
 .SH SYNOPSIS
diff --git a/src/man/page.5 b/src/man/page.5
index 5e39a55d72298c7fbcb9d2db5ed999506f571113..34cc35e124aa137ff34b7526cc306b2c8a543877 100644
--- a/src/man/page.5
+++ b/src/man/page.5
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/page.5,v 1.1 1996/11/14 10:17:40 scrappy Exp $
-.TH PAGE FILES 01/23/93 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/page.5,v 1.2 1996/12/11 00:27:59 momjian Exp $
+.TH PAGE FILES 01/23/93 PostgreSQL PostgreSQL
 .SH NAME
 page structure \(em Postgres database file default page format
 .SH DESCRIPTION
@@ -18,7 +18,7 @@ Diagram 1 shows how pages in both normal Postgres classes and Postgres index
 classes (e.g., a B-tree index) are structured.
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/page.5,v 1.1 1996/11/14 10:17:40 scrappy Exp $
+.\" $Header: /cvsroot/pgsql/src/man/Attic/page.5,v 1.2 1996/12/11 00:27:59 momjian Exp $
 .in +0.5i
 .(b M
 .PS
diff --git a/src/man/pg_dump.1 b/src/man/pg_dump.1
index cb90b23423719db5f71ba0c7a9e53a61080663ec..a623548622c8c5ac8a66412d8c5d50b90e2db501 100644
--- a/src/man/pg_dump.1
+++ b/src/man/pg_dump.1
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/pg_dump.1,v 1.2 1996/11/17 04:56:16 momjian Exp $
-.TH PG_DUMP UNIX 1/20/96 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/pg_dump.1,v 1.3 1996/12/11 00:27:59 momjian Exp $
+.TH PG_DUMP UNIX 1/20/96 PostgreSQL PostgreSQL
 .SH NAME
 pg_dump \(em dumps out a Postgres database into a script file
 .SH SYNOPSIS
diff --git a/src/man/postgres.1 b/src/man/postgres.1
index 6f1a935dd8814ca68da27f9fd759fdb8597cf336..e39c614b173720015031928217779367ed39b2a6 100644
--- a/src/man/postgres.1
+++ b/src/man/postgres.1
@@ -1,6 +1,6 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/postgres.1,v 1.2 1996/12/07 04:39:38 momjian Exp $
+.\" $Header: /cvsroot/pgsql/src/man/Attic/postgres.1,v 1.3 1996/12/11 00:28:00 momjian Exp $
 .TH POSTGRES95 UNIX 11/05/95 Postgres95 Postgres95
 .SH NAME
 postgres \(em the Postgres backend server
@@ -10,11 +10,15 @@ postgres \(em the Postgres backend server
 .BR "-B"
 n_buffers]
 [\c
+.BR "-D"
+data_directory]
+[\c
 .BR "-E"
 ]
 [\c
 .BR "-F"
 ]
+.br
 [\c
 .BR "-P"
 filedes]
@@ -22,7 +26,6 @@ filedes]
 .BR "-Q"
 ]
 .br
-.in +5n
 [\c
 .BR "-d"
 debug_level]
@@ -53,6 +56,18 @@ The
 .IR postgres
 server understands the following command-line options:
 .TP 5n
+.BR "-D" " data_directory"
+This option specifies the pathname of the directory that contains the
+database system data (the tables, the catalogs, etc.).  If you don't 
+specify this option, Postgres uses the value of the PGDATA environment
+variable.  You must either specify a -D option or set PGDATA.
+ 
+The data directory pathname for a database system is normally determined when
+the database system is created with
+.IR initdb ,
+with a --pgdata option to
+.IR initdb .
+.TP
 .BR "-B" " n_buffers"
 If the backend is running under the 
 .IR postmaster ,
@@ -67,7 +82,7 @@ allocate.  This value defaults to 64.
 Echo all queries.
 .TP
 .BR "-F"
-Disbable automatic fsync() call after each transaction.
+Disable automatic fsync() call after each transaction.
 This option improves performance, but an operating system crash
 while a transaction is in progress will probably cause data loss.
 .TP
diff --git a/src/man/postmaster.1 b/src/man/postmaster.1
index dd96248dee28b23fa8100f3c76ff8e467d6f1aa2..bad69d7e1055ab93d95204713ffe21fa474b7a0c 100644
--- a/src/man/postmaster.1
+++ b/src/man/postmaster.1
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/postmaster.1,v 1.1 1996/11/14 10:17:48 scrappy Exp $
-.TH POSTMASTER UNIX 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/postmaster.1,v 1.2 1996/12/11 00:28:02 momjian Exp $
+.TH POSTMASTER UNIX 11/05/95 PostgreSQL PostgreSQL
 .SH "NAME"
 postmaster \(em run the Postgres postmaster
 .SH "SYNOPSIS"
diff --git a/src/man/psql.1 b/src/man/psql.1
index 4d729234df532ee663e01715ec0282c5d43d063d..b48d852d75ace53f911b90882fe2902229bebbff 100644
--- a/src/man/psql.1
+++ b/src/man/psql.1
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/psql.1,v 1.3 1996/11/17 04:27:34 momjian Exp $
-.TH PSQL UNIX 1/20/96 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/psql.1,v 1.4 1996/12/11 00:28:03 momjian Exp $
+.TH PSQL UNIX 1/20/96 PostgreSQL PostgreSQL
 .SH NAME
 psql \(em run the interactive query front-end
 .SH SYNOPSIS
@@ -107,7 +107,7 @@ to use in connecting to the
 process.  The default is site-specific.
 .TP
 .BR "-A"
-Turn off fill justification when printing out attributes.
+Turn off fill justification when printing out table elements.
 .TP
 .BR "-c" " query"
 Specifies that
@@ -177,16 +177,16 @@ Run ins single-line mode where each query is terminated by a newline,
 instead of a semicolon.
 .TP
 .BR "-t"
-Turn off printing of attributes names.
+Turn off printing of column names.
 This is useful with the
 .BR -c
 option in shell scripts.
 .TP
 .BR "-x"
-Turns on extended field mode. When enabled each tuple will have its field
-names printed on the left with the field values printed on the right.
-This is useful for tuples which are otherwise too long to fit into
-one screen line. HTML tuple output supports this mode also.
+Turns on extended row format mode. When enabled each row will have its column
+names printed on the left with the column values printed on the right.
+This is useful for rows which are otherwise too long to fit into
+one screen line. HTML row output supports this mode also.
 .PP
 You may set environment variables to avoid typing some of the above
 options.  See the
@@ -231,12 +231,29 @@ and
 .IR notify (l).
 .PP
 .SH "PSQL COMMANDS"
+Anything you enter in psql that begins with an unquoted backslash is a psql
+command.  Anything else is SQL and simply goes into the current query buffer
+(and once you have at least one complete query, it gets automatically 
+submitted to the backend).  Psql commands are also called slash commands.
+.PP
+The format of a psql command is the backslash, followed immediately by
+a command verb, then any arguments.  The arguments are separated from the
+command verb and each other by any number of white space characters.
+.PP
+With single character command verbs, you don't actually need to separate the
+command verb from the argument with white space, for historical reasons.
+You should anyway.
 .IP "\ea"
-Toggle field alignment when printing out attributes.
+Toggle field alignment when printing out table elements.
 .IP "\eC \fIcaption\fR"
 Set the HTML3.0 table caption.
-.IP "\ec \fIdbname\fR"
+.IP "\econnect \fIdbname\fR"
 Establish a connection to a new database. The previous connection is closed.
+.IP "\ecopy \fItable\fR {FROM | TO} \fIfilename\fR"
+Perform a frontend copy.  This is an operation that runs a SQL COPY command,
+but instead of the backend reading or writing a specified file, and 
+consequently requiring special user privilege, psql reads or writes the 
+file and routes the data to or from the backend.
 .IP "\ed [\fItable\fR]"
 List tables in the database, or if
 .IR table
@@ -295,14 +312,14 @@ Reset(clear) the query buffer.
 Print or save the command line history to \fIfilename\fR.  (Only available if psql is
 configured to use readline)
 .IP "\et"
-Toggle display of output attribute name headings and row count (defaults to on).
+Toggle display of output column name headings and row count (defaults to on).
 .IP "\eT"
 Set html3.0 <table ...> options.
 .IP "\ex"
-Toggles extended field mode. When enabled each tuple will have its field
-names printed on the left with the field values printed on the right.
-This is useful for tuples which are otherwise too long to fit into
-one screen line. HTML tuple output mode supports this flag too.
+Toggles extended row format mode. When enabled each row will have its column
+names printed on the left with the column values printed on the right.
+This is useful for rows which are otherwise too long to fit into
+one screen line. HTML row output mode supports this flag too.
 .IP "\e! [\fIcommand\fR]"
 Escape to shell or execute
 .IR command.
@@ -350,3 +367,4 @@ introduction(libpq),
 monitor(1)
 postgres(1),
 postmaster(1).
+
diff --git a/src/man/purge.l b/src/man/purge.l
index 9e1f68a99f95a861b25c85f618b8e90c9b4ca42d..29d8dc6246c5d074b6bec732b5bbcb2ae044a98a 100644
--- a/src/man/purge.l
+++ b/src/man/purge.l
@@ -1,6 +1,6 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.TH PURGE SQL 11/05/95 Postgres95 Postgres95
+.TH PURGE SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 purge \(em discard historical data
 .SH SYNOPSIS
diff --git a/src/man/remove_view.l b/src/man/remove_view.l
index db10554cea77a47938ae99cd8be77b008dcc229b..fdcd0ca39522721d151d3955f106806082694443 100644
--- a/src/man/remove_view.l
+++ b/src/man/remove_view.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/remove_view.l,v 1.1 1996/11/14 10:17:55 scrappy Exp $
-.TH "DROP VIEW" SQL 04/25/94 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/remove_view.l,v 1.2 1996/12/11 00:28:05 momjian Exp $
+.TH "DROP VIEW" SQL 04/25/94 PostgreSQL PostgreSQL
 .SH NAME
 drop view \(em removes a view from Postgres
 .SH SYNOPSIS
diff --git a/src/man/rename.l b/src/man/rename.l
index 8539549bad4289c1408f6e2781793c3e53feba70..75de7ffeb6c7af9e1b5cca47f1ab65b107528629 100644
--- a/src/man/rename.l
+++ b/src/man/rename.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/rename.l,v 1.1 1996/11/14 10:17:56 scrappy Exp $
-.TH RENAME SQL 02/08/94 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/rename.l,v 1.2 1996/12/11 00:28:06 momjian Exp $
+.TH RENAME SQL 02/08/94 PostgreSQL PostgreSQL
 .SH NAME
 rename \(em rename a class or an attribute in a class
 .SH SYNOPSIS
diff --git a/src/man/revoke.l b/src/man/revoke.l
index 66ec2c83013dfb327e61a92517de1646d7e93b42..fdf0a5ffda1301c36414fd1fa74720535b5d5172 100644
--- a/src/man/revoke.l
+++ b/src/man/revoke.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/revoke.l,v 1.1 1996/11/14 10:17:58 scrappy Exp $
-.TH REVOKE SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/revoke.l,v 1.2 1996/12/11 00:28:07 momjian Exp $
+.TH REVOKE SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 revoke \(em revoke access privileges
 .SH SYNOPSIS
diff --git a/src/man/rollback.l b/src/man/rollback.l
index f9b7ae366d70ddd527f6e881b80e403bf3701668..813394a9027cf57cf59eb5436587365f2201a220 100644
--- a/src/man/rollback.l
+++ b/src/man/rollback.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/rollback.l,v 1.1 1996/11/14 10:18:00 scrappy Exp $
-.TH ROLLBACK SQL 01/20/96 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/rollback.l,v 1.2 1996/12/11 00:28:08 momjian Exp $
+.TH ROLLBACK SQL 01/20/96 PostgreSQL PostgreSQL
 .\" XXX This .XA has to go after the .TH so that the index page number goes
 .\"	in the right place...
 .SH NAME
diff --git a/src/man/select.l b/src/man/select.l
index 83974242dd874f9e570993e70d8fcf67bb5229e6..c4ac5b8eec96f7ec4d06aa0adc03cd8cdcb5c1a7 100644
--- a/src/man/select.l
+++ b/src/man/select.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/select.l,v 1.1 1996/11/14 10:18:02 scrappy Exp $
-.TH SELECT SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/select.l,v 1.2 1996/12/11 00:28:09 momjian Exp $
+.TH SELECT SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 select \(em retrieve instances from a class
 .SH SYNOPSIS
diff --git a/src/man/sql.l b/src/man/sql.l
index 98d21358407af4e5a2339c7a77e1392ce6bd846c..2ec478267acdb93409d693440a525c4da05b48d1 100644
--- a/src/man/sql.l
+++ b/src/man/sql.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/sql.l,v 1.2 1996/11/27 13:49:46 momjian Exp $
-.TH INTRODUCTION SQL 11/5/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/sql.l,v 1.3 1996/12/11 00:28:11 momjian Exp $
+.TH INTRODUCTION SQL 11/5/95 PostgreSQL PostgreSQL
 .SH "Section 4 \(em SQL Commands (COMMANDS)"
 .SH "General Information"
 .SH DESCRIPTION
diff --git a/src/man/unix.1 b/src/man/unix.1
index 2ecc565545b27be37a4fcd68c08b46b73fde7990..df27900cf42b4871ac7eeb1038c06309d9adafa8 100644
--- a/src/man/unix.1
+++ b/src/man/unix.1
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/unix.1,v 1.1 1996/11/14 10:18:07 scrappy Exp $
-.TH INTRODUCTION UNIX 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/unix.1,v 1.2 1996/12/11 00:28:12 momjian Exp $
+.TH INTRODUCTION UNIX 11/05/95 PostgreSQL PostgreSQL
 .SP INFORMATION UNIX 11/05/95
 .BH "SECTION 2 \(em Unix COMMANDS (Unix)"
 .SH "OVERVIEW"
diff --git a/src/man/update.l b/src/man/update.l
index 4094b6c6b70cff0650d2ce5e52e75a996f87f4b2..fb026c828e4a98bbfda701d9df2f879577d977cb 100644
--- a/src/man/update.l
+++ b/src/man/update.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/update.l,v 1.1 1996/11/14 10:18:11 scrappy Exp $
-.TH UPDATE SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/update.l,v 1.2 1996/12/11 00:28:13 momjian Exp $
+.TH UPDATE SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 update \(em replace values of attributes in a class
 .SH SYNOPSIS
diff --git a/src/man/vacuum.l b/src/man/vacuum.l
index 297124cd61cbfb3951531512f6760ecb8e92c354..b36f95c30586a468760745b30300c701da00dc95 100644
--- a/src/man/vacuum.l
+++ b/src/man/vacuum.l
@@ -1,7 +1,7 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/vacuum.l,v 1.1 1996/11/14 10:18:14 scrappy Exp $
-.TH VACUUM SQL 11/05/95 Postgres95 Postgres95
+.\" $Header: /cvsroot/pgsql/src/man/Attic/vacuum.l,v 1.2 1996/12/11 00:28:15 momjian Exp $
+.TH VACUUM SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 vacuum \(em vacuum a database
 .SH SYNOPSIS