]> granicus.if.org Git - postgresql/commitdiff
This shows the new use of defaults.
authorMarc G. Fournier <scrappy@hub.org>
Thu, 19 Sep 1996 20:07:15 +0000 (20:07 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Thu, 19 Sep 1996 20:07:15 +0000 (20:07 +0000)
Submitted by: Bruce Momjian <maillist@candle.pha.pa.us>

doc/man/create_index.l

index 3b3bd58e997d1e86458e88c1b128f78c15c026b9..1a4fb3c9a61025b957840b2059672baf6389c7ec 100644 (file)
@@ -1,17 +1,17 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/doc/man/Attic/create_index.l,v 1.1.1.1 1996/08/18 22:14:21 scrappy Exp $
+.\" $Header: /cvsroot/pgsql/doc/man/Attic/create_index.l,v 1.2 1996/09/19 20:07:15 scrappy Exp $
 .TH "CREATE INDEX" SQL 11/05/95 Postgres95 Postgres95
 .SH NAME
 create index \(em construct a secondary index
 .SH SYNOPSIS
 .nf
 \fBcreate\fR \fBindex\fR index-name
-       \fBon\fR classname \fBusing\fR am-name
-       \fB(\fR attname type_class \fB)\fR
+       \fBon\fR classname [\fBusing\fR am-name]
+       \fB(\fR attname [type_class\fB] )\fR
 
 \fBcreate\fR \fBindex\fR index-name
-       \fBon\fR classname \fBusing\fR am-name
+       \fBon\fR classname [\fBusing\fR am-name]
        \fB(\fR funcname \fB(\fR attname\-1 { , attname\-i } \fB)\fR type_class \fB)\fR
 .fi
 .SH DESCRIPTION
@@ -20,6 +20,7 @@ This command constructs an index called
 .PP
 .IR Am-name
 is the name of the access method which is used for the index.
+The default access method is btree.
 .PP
 In the first syntax shown above, the key field for the index is
 specified as an attribute name and an associated
@@ -30,6 +31,8 @@ would use the
 .IR int4_ops
 class; this operator class includes comparison functions for four-byte
 integers.
+The default operator class is the appropriate operator class for
+that field type.
 .PP
 In the second syntax shown above, an index can be defined on the
 result of a user-defined function