Skip to content

Commit dd0279b

Browse files
author
Thomas G. Lockhart
committed
Document the precision arguments for date/time types per SQL9x.
Update the list of recognized time zones. Document the range of arguments allowed for SET TIME ZONE. Still need to add info on other date/time symbols (e.g. "AM", "T") and to freshen the docs on the date/time parsing rules.
1 parent b5e23db commit dd0279b

File tree

3 files changed

+185
-99
lines changed

3 files changed

+185
-99
lines changed

doc/src/sgml/datatype.sgml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.80 2001/12/23 20:21:37 tgl Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.81 2001/12/29 18:35:46 thomas Exp $
33
-->
44

55
<chapter id="datatype">
@@ -135,7 +135,7 @@ $Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.80 2001/12/23 20:21:37 tg
135135
</row>
136136

137137
<row>
138-
<entry><type>interval</type></entry>
138+
<entry><type>interval(<replaceable>p</replaceable>)</type></entry>
139139
<entry></entry>
140140
<entry>general-use time span</entry>
141141
</row>
@@ -165,8 +165,10 @@ $Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.80 2001/12/23 20:21:37 tg
165165
</row>
166166

167167
<row>
168-
<entry><type>numeric(<replaceable>p</replaceable>, <replaceable>s</replaceable>)</type></entry>
169-
<entry><type>decimal(<replaceable>p</replaceable>, <replaceable>s</replaceable>)</type></entry>
168+
<entry><type>numeric [ (<replaceable>p</replaceable>,
169+
<replaceable>s</replaceable>) ]</type></entry>
170+
<entry><type>decimal [ (<replaceable>p</replaceable>,
171+
<replaceable>s</replaceable>) ]</type></entry>
170172
<entry>exact numeric with selectable precision</entry>
171173
</row>
172174

@@ -1306,15 +1308,15 @@ SELECT b, char_length(b) FROM test2;
13061308
<entry>1 day</entry>
13071309
</row>
13081310
<row>
1309-
<entry><type>time [ without time zone ]</type></entry>
1311+
<entry><type>time [ (<replaceable>p</replaceable>) ] [ without time zone ]</type></entry>
13101312
<entry>times of day only</entry>
13111313
<entry>8 bytes</entry>
13121314
<entry>00:00:00.00</entry>
13131315
<entry>23:59:59.99</entry>
13141316
<entry>1 microsecond</entry>
13151317
</row>
13161318
<row>
1317-
<entry><type>time with time zone</type></entry>
1319+
<entry><type>time [ (<replaceable>p</replaceable>) ] with time zone</type></entry>
13181320
<entry>times of day only</entry>
13191321
<entry>12 bytes</entry>
13201322
<entry>00:00:00.00+12</entry>
@@ -2164,7 +2166,7 @@ January 8 04:05:06 1999 PST
21642166
<productname>PostgreSQL</productname> for legacy applications and
21652167
for compatibility with other RDBMS implementations).
21662168
<productname>PostgreSQL</productname>
2167-
assumes local time for any type containing only
2169+
assumes your local time zone for any type containing only
21682170
date or time. Further, time zone support is derived from
21692171
the underlying operating system
21702172
time-zone capabilities, and hence can handle daylight-saving time

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy