Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
7b53b45a
Commit
7b53b45a
authored
19 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Update interval documenation to mention the storage system used.
parent
2ddac948
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/src/sgml/datatype.sgml
+16
-5
16 additions, 5 deletions
doc/src/sgml/datatype.sgml
with
16 additions
and
5 deletions
doc/src/sgml/datatype.sgml
+
16
−
5
View file @
7b53b45a
<!--
<!--
$PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.16
3
2005/1
0
/22
19:33:57 tgl
Exp $
$PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.16
4
2005/1
2
/22
21:45:19 momjian
Exp $
-->
-->
<chapter id="datatype">
<chapter id="datatype">
...
@@ -1841,9 +1841,20 @@ January 8 04:05:06 1999 PST
...
@@ -1841,9 +1841,20 @@ January 8 04:05:06 1999 PST
</para>
</para>
<para>
<para>
The optional precision
The optional subsecond precision <replaceable>p</replaceable> should
<replaceable>p</replaceable> should be between 0 and 6, and
be between 0 and 6, and defaults to the precision of the input literal.
defaults to the precision of the input literal.
</para>
<para>
Internally <type>interval</> values are stored as months, days,
and seconds. This is done because the number of days in a month
varies, and a day can have 23 or 25 hours if a daylight savings
time adjustment is involved. Because intervals are usually created
from constant strings or <type>timestamp</> subtraction, this
storage method works well in most cases. Functions
<function>justify_days</> and <function>justify_hours</> are
available for adjusting days and hours that overflow their normal
periods.
</para>
</para>
</sect3>
</sect3>
...
@@ -1936,7 +1947,7 @@ January 8 04:05:06 1999 PST
...
@@ -1936,7 +1947,7 @@ January 8 04:05:06 1999 PST
<literal>CURRENT_DATE</literal>, <literal>CURRENT_TIME</literal>,
<literal>CURRENT_DATE</literal>, <literal>CURRENT_TIME</literal>,
<literal>CURRENT_TIMESTAMP</literal>, <literal>LOCALTIME</literal>,
<literal>CURRENT_TIMESTAMP</literal>, <literal>LOCALTIME</literal>,
<literal>LOCALTIMESTAMP</literal>. The latter four accept an
<literal>LOCALTIMESTAMP</literal>. The latter four accept an
optional precision specification. (See <xref
optional
subsecond
precision specification. (See <xref
linkend="functions-datetime-current">.) Note however that these are
linkend="functions-datetime-current">.) Note however that these are
SQL functions and are <emphasis>not</> recognized as data input strings.
SQL functions and are <emphasis>not</> recognized as data input strings.
</para>
</para>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment