Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0f6be37

Browse files
committed
Clarify that the --enable-integer-datetimes switch affects the time and
interval datatypes as well as timestamp.
1 parentbe105bd commit0f6be37

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

‎doc/src/sgml/datatype.sgml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.153 2005/01/08 05:19:18 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.154 2005/01/17 18:47:15 tgl Exp $
33
-->
44

55
<chapter id="datatype">
@@ -1351,7 +1351,7 @@ SELECT b, char_length(b) FROM test2;
13511351
<entry>time intervals</entry>
13521352
<entry>-178000000 years</entry>
13531353
<entry>178000000 years</entry>
1354-
<entry>1 microsecond</entry>
1354+
<entry>1 microsecond / 14 digits</entry>
13551355
</row>
13561356
<row>
13571357
<entry><type>date</type></entry>
@@ -1367,15 +1367,15 @@ SELECT b, char_length(b) FROM test2;
13671367
<entry>times of day only</entry>
13681368
<entry>00:00:00.00</entry>
13691369
<entry>23:59:59.99</entry>
1370-
<entry>1 microsecond</entry>
1370+
<entry>1 microsecond / 14 digits</entry>
13711371
</row>
13721372
<row>
13731373
<entry><type>time [ (<replaceable>p</replaceable>) ] with time zone</type></entry>
13741374
<entry>12 bytes</entry>
13751375
<entry>times of day only, with time zone</entry>
13761376
<entry>00:00:00.00+12</entry>
13771377
<entry>23:59:59.99-12</entry>
1378-
<entry>1 microsecond</entry>
1378+
<entry>1 microsecond / 14 digits</entry>
13791379
</row>
13801380
</tbody>
13811381
</tgroup>
@@ -1410,7 +1410,11 @@ SELECT b, char_length(b) FROM test2;
14101410
eight-byte integers (a compile-time
14111411
option), microsecond precision is available over the full range of
14121412
values. However eight-byte integer timestamps have a more limited range of
1413-
dates than shown above: from 4713 BC up to 294276 AD.
1413+
dates than shown above: from 4713 BC up to 294276 AD. The same
1414+
compile-time option also determines whether <type>time</type> and
1415+
<type>interval</type> values are stored as floating-point or eight-byte
1416+
integers. In the floating-point case, large <type>interval</type> values
1417+
degrade in precision as the size of the interval increases.
14141418
</para>
14151419
</note>
14161420

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp