Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
60200784
Commit
60200784
authored
Oct 25, 2005
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert explanation of interval change into something resembling grammatical
English, and fix the incorrect example.
parent
6a9b93a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
doc/src/sgml/release.sgml
doc/src/sgml/release.sgml
+13
-12
No files found.
doc/src/sgml/release.sgml
View file @
60200784
<!--
$PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.39
2 2005/10/25 15:12:22 momjian
Exp $
$PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.39
3 2005/10/25 17:54:30 tgl
Exp $
Typical markup:
...
...
@@ -1147,7 +1147,7 @@ psql -t -f fixseq.sql db1 | psql -e db1
SELECT CURRENT_TIMESTAMP AT TIME ZONE 'Europe/London';
</programlisting>
In the above query, the time zone used is adjusted based on the
daylight saving
s
time rules that were in effect on the supplied
daylight saving time rules that were in effect on the supplied
date.
</para>
</listitem>
...
...
@@ -1206,21 +1206,22 @@ psql -t -f fixseq.sql db1 | psql -e db1
<listitem>
<para>
Add a
n internal day field to <type>INTERVAL
</> so a one day
Add a
separate day field to type <type>interval
</> so a one day
interval can be distinguished from a 24 hour interval (Michael
Glaesemann)
</para>
<para>
Dates that contain a daylight savings time adjustment are not 24
hours, but typically 23 or 25 hours. This change allows numeric days
(not fixed 24-hour periods) to be added to dates which include
a daylight savings time adjustment period. Therefore, while in
previous releases <literal>1 day</> and <literal>24 hours</> were
interchangeable interval values, in this release they are treated
differently, e.g.
Days that contain a daylight saving time adjustment are not 24
hours long, but typically 23 or 25 hours. This change creates a
conceptual distinction between intervals of <quote>so many days</>
and intervals of <quote>so many hours</>. Adding
<literal>1 day</> to a timestamp now gives the same local time on
the next day even if a daylight saving time adjustment occurs
between, whereas adding <literal>24 hours</> will give a different
local time when this happens. For example, under US DST rules:
<programlisting>
'2005-0
5-03 00:00:00 EST' + '1 day' = '2005-05
-04 00:00:00-04'
'2005-0
5-03 00:00:00 EST' + '24 hours' = '2005-05
-04 01:00:00-04'
'2005-0
4-03 00:00:00-05' + '1 day' = '2005-04
-04 00:00:00-04'
'2005-0
4-03 00:00:00-05' + '24 hours' = '2005-04
-04 01:00:00-04'
</programlisting>
</para>
</listitem>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment