Commit 2545844a authored by Marc G. Fournier's avatar Marc G. Fournier

This shows the new use of defaults.


Submitted by: Bruce Momjian <maillist@candle.pha.pa.us>
parent 3c237e73
.\" This is -*-nroff-*- .\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here.... .\" 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 .TH "CREATE INDEX" SQL 11/05/95 Postgres95 Postgres95
.SH NAME .SH NAME
create index \(em construct a secondary index create index \(em construct a secondary index
.SH SYNOPSIS .SH SYNOPSIS
.nf .nf
\fBcreate\fR \fBindex\fR index-name \fBcreate\fR \fBindex\fR index-name
\fBon\fR classname \fBusing\fR am-name \fBon\fR classname [\fBusing\fR am-name]
\fB(\fR attname type_class \fB)\fR \fB(\fR attname [type_class\fB] )\fR
\fBcreate\fR \fBindex\fR index-name \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 \fB(\fR funcname \fB(\fR attname\-1 { , attname\-i } \fB)\fR type_class \fB)\fR
.fi .fi
.SH DESCRIPTION .SH DESCRIPTION
...@@ -20,6 +20,7 @@ This command constructs an index called ...@@ -20,6 +20,7 @@ This command constructs an index called
.PP .PP
.IR Am-name .IR Am-name
is the name of the access method which is used for the index. is the name of the access method which is used for the index.
The default access method is btree.
.PP .PP
In the first syntax shown above, the key field for the index is In the first syntax shown above, the key field for the index is
specified as an attribute name and an associated specified as an attribute name and an associated
...@@ -30,6 +31,8 @@ would use the ...@@ -30,6 +31,8 @@ would use the
.IR int4_ops .IR int4_ops
class; this operator class includes comparison functions for four-byte class; this operator class includes comparison functions for four-byte
integers. integers.
The default operator class is the appropriate operator class for
that field type.
.PP .PP
In the second syntax shown above, an index can be defined on the In the second syntax shown above, an index can be defined on the
result of a user-defined function result of a user-defined function
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment