1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-31 22:04:40 +03:00

Use "man drop" as an introduction to all drop commands.

Create explicit drop_table man page (copied from old drop man page).
This commit is contained in:
Thomas G. Lockhart
1997-09-27 04:36:02 +00:00
parent fcc0320b69
commit c19bd8c764
2 changed files with 59 additions and 31 deletions

View File

@ -1,41 +1,18 @@
.\" This is -*-nroff-*- .\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here.... .\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/src/man/Attic/drop.l,v 1.3 1997/09/26 15:20:12 thomas Exp $ .\" $Header: /cvsroot/pgsql/src/man/Attic/drop.l,v 1.4 1997/09/27 04:36:01 thomas Exp $
.TH "DROP TABLE" SQL 09/26/97 PostgreSQL .TH "DROP ATTRIBUTE" SQL 09/26/97 PostgreSQL
.SH NAME .SH NAME
drop table \(em destroy existing classes drop \(em destroy existing attributes
.SH SYNOPSIS .SH SYNOPSIS
.nf .nf
\fBdrop table\fR classname-1 { \fB,\fR classname-i } \fBdrop {aggregate|database|function|index|operator
|rule|sequence|table|trigger|type|view}\fR
.fi .fi
.SH DESCRIPTION .SH DESCRIPTION
.BR "Drop Table" .BR "drop attribute"
removes classes from the data base. Only its owner may destroy a removes an attribute from the database.
class. A class may be emptied of instances, but not destroyed, by Refer to a specific man page (e.g. "man drop_table") for details.
using
.IR delete (l).
.PP
If a class being destroyed has secondary indices on it, then they will
be removed first. The removal of just a secondary index will not
affect the indexed class.
.PP
The destruction of classes is not reversable. Thus, a destroyed class
will not be recovered if a transaction which destroys this class fails
to commit. In addition, historical access to instances in a destroyed
class is not possible.
.SH EXAMPLE
.nf
--
--Destroy the emp class
--
drop table emp
.fi
.nf
--
--Destroy the emp and parts classes
--
drop table emp, parts
.fi
.SH "SEE ALSO" .SH "SEE ALSO"
delete(l), delete(l),
drop aggregate(l), drop aggregate(l),
@ -45,6 +22,7 @@ drop index(l),
drop operator(l), drop operator(l),
drop rule(l), drop rule(l),
drop sequence(l), drop sequence(l),
drop table(l),
drop trigger(l), drop trigger(l),
drop type(l), drop type(l),
drop view(l). drop view(l).

50
src/man/drop_table.l Normal file
View File

@ -0,0 +1,50 @@
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/src/man/Attic/drop_table.l,v 1.1 1997/09/27 04:36:02 thomas Exp $
.TH "DROP TABLE" SQL 09/26/97 PostgreSQL
.SH NAME
drop table \(em destroy existing classes
.SH SYNOPSIS
.nf
\fBdrop table\fR classname-1 { \fB,\fR classname-i }
.fi
.SH DESCRIPTION
.BR "Drop Table"
removes classes from the data base. Only its owner may destroy a
class. A class may be emptied of instances, but not destroyed, by
using
.IR delete (l).
.PP
If a class being destroyed has secondary indices on it, then they will
be removed first. The removal of just a secondary index will not
affect the indexed class.
.PP
The destruction of classes is not reversible. Thus, a destroyed class
will not be recovered if a transaction which destroys this class fails
to commit. In addition, historical access to instances in a destroyed
class is not possible.
.SH EXAMPLE
.nf
--
--Destroy the emp class
--
drop table emp
.fi
.nf
--
--Destroy the emp and parts classes
--
drop table emp, parts
.fi
.SH "SEE ALSO"
delete(l),
drop aggregate(l),
drop database(l),
drop function(l),
drop index(l),
drop operator(l),
drop rule(l),
drop sequence(l),
drop trigger(l),
drop type(l),
drop view(l).