Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7cd15c4

Browse files
author
Thomas G. Lockhart
committed
Document NOT NULL for table creation.
Clarify usage of date_part() for timespan data type.
1 parent dec1889 commit 7cd15c4

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/man/create_table.l

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
.\" This is -*-nroff-*-
22
.\" XXX standard disclaimer belongs here....
3-
.\" $Header: /cvsroot/pgsql/src/man/Attic/create_table.l,v 1.8 1997/09/27 03:58:29 momjian Exp $
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/create_table.l,v 1.9 1997/10/01 17:05:13 thomas Exp $
44
.TH "CREATE TABLE" SQL 09/25/97 PostgreSQL
55
.SH NAME
66
create table \(em create a new class
77
.SH SYNOPSIS
88
.nf
9-
\fBcreate table\fR classname \fB(\fPattname type [\fBdefault\fP value]
10-
[\fB,\fP attname type [\fBdefault\fP value] ]\fB )\fP
9+
\fBcreate table\fR classname \fB(\fPattname type [not null] [\fBdefault\fP value]
10+
[\fB,\fP attname type [\fBnot null\fP] [\fBdefault\fP value] ]\fB )\fP
1111
[\fBinherits\fR \fB(\fR classname [\fB,\fR classname] \fB)\fR]
1212
[\fBconstraint\fR cname \fBcheck\fR \fB(\fR test \fB)\fR [, \fBcheck\fR \fB(\fR test \fB)\fR ] ]
1313
[\fBarchive\fR \fB=\fR archive_mode]
@@ -25,7 +25,8 @@ and the attributes are as specified in the list of
2525
Each attribute is created with the type specified by
2626
.IR type "."
2727
Each type may be a simple type, a complex type (set) or an array type.
28-
Each attribute may have a default value, specified by the
28+
Each attribute may be specified to be non-null and
29+
each may have a default value, specified by the
2930
.IR default
3031
clause which is the keyword "default" followed by a constant or expression.
3132
.PP

src/man/pgbuiltin.3

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" This is -*-nroff-*-
22
.\" XXX standard disclaimer belongs here....
3-
.\" $Header: /cvsroot/pgsql/src/man/Attic/pgbuiltin.3,v 1.5 1997/09/27 04:37:33 thomas Exp $
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/pgbuiltin.3,v 1.6 1997/10/01 17:05:16 thomas Exp $
44
.TH PGBUILTIN INTRO 04/01/97 PostgreSQL PostgreSQL
55
.SH "DESCRIPTION"
66
This section describes the data types, functions and operators
@@ -592,9 +592,9 @@ functions, arguments can be
592592
`year', `month', `day', `hour', `minute', and `second',
593593
as well as the more specialized quantities
594594
`decade', `century', `millenium', `millisecond', and `microsecond'.
595-
date_part() also allows
596-
`dow'
597-
to return day of week and `epoch' to return seconds since 1970.
595+
date_part() allows `dow'
596+
to return day of week and `epoch' to return seconds since 1970 for datetime
597+
and 'epoch' to return total elapsed seconds for timespan.
598598

599599
.nf
600600
Functions:

0 commit comments

Comments
 (0)