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

Commitecf7fcc

Browse files
committed
Fix broken markup and spelling, put paragraph in a somewhat less random
place.
1 parenta42407c commitecf7fcc

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

‎doc/src/sgml/func.sgml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.274 2005/07/3014:52:04 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.275 2005/07/3022:53:15 tgl Exp $
33
PostgreSQL documentation
44
-->
55

@@ -4903,24 +4903,6 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
49034903
such pair.
49044904
</para>
49054905

4906-
<para>
4907-
When adding an <type>interval</type> value to (or subtracting an
4908-
<type>interval</type> value from) a <type>timestamp with time zone</type>
4909-
value, the days component advances (or decrements) the date of the
4910-
<type>timestamp with time zone<type> by the indicated number of days.
4911-
Across daylight saving time changes (with the session tiem zone set to a
4912-
time zone that recognizes DST), this means <literal>interval '1 day'</literal>
4913-
does not necessarily equal <literal>interval '24 hours'</literal>.
4914-
For example, with the session time zone set to <literal>CST7CDT</literal>
4915-
<literal>timestamp with time zone '2005-04-02 12:00-07' + interval '1 day' </literal>
4916-
will produce <literal>timestamp with time zone '2005-04-03 12:00-06'</literal>,
4917-
while adding <literal>interval '24 hours'</literal> to the same initial
4918-
<type>timestamp with time zone</type> produces
4919-
<literal>timestamp with time zone '2005-04-03 13:00-06'</literal>, as there is
4920-
a change in daylight saving time at <literal>2005-04-03 02:00</literal> in time zone
4921-
<literal>CST7CDT</literal>.
4922-
</para>
4923-
49244906
<table id="operators-datetime-table">
49254907
<title>Date/Time Operators</title>
49264908

@@ -5241,6 +5223,24 @@ SELECT (DATE '2001-02-16', INTERVAL '100 days') OVERLAPS
52415223
<lineannotation>Result: </lineannotation><computeroutput>false</computeroutput>
52425224
</screen>
52435225

5226+
<para>
5227+
When adding an <type>interval</type> value to (or subtracting an
5228+
<type>interval</type> value from) a <type>timestamp with time zone</type>
5229+
value, the days component advances (or decrements) the date of the
5230+
<type>timestamp with time zone</type> by the indicated number of days.
5231+
Across daylight saving time changes (with the session time zone set to a
5232+
time zone that recognizes DST), this means <literal>interval '1 day'</literal>
5233+
does not necessarily equal <literal>interval '24 hours'</literal>.
5234+
For example, with the session time zone set to <literal>CST7CDT</literal>,
5235+
<literal>timestamp with time zone '2005-04-02 12:00-07' + interval '1 day' </literal>
5236+
will produce <literal>timestamp with time zone '2005-04-03 12:00-06'</literal>,
5237+
while adding <literal>interval '24 hours'</literal> to the same initial
5238+
<type>timestamp with time zone</type> produces
5239+
<literal>timestamp with time zone '2005-04-03 13:00-06'</literal>, as there is
5240+
a change in daylight saving time at <literal>2005-04-03 02:00</literal> in time zone
5241+
<literal>CST7CDT</literal>.
5242+
</para>
5243+
52445244
<sect2 id="functions-datetime-extract">
52455245
<title><function>EXTRACT</function>, <function>date_part</function></title>
52465246

@@ -9275,17 +9275,17 @@ SELECT set_config('log_statement_stats', 'off', false);
92759275
<primary>pg_relation_size</primary>
92769276
</indexterm>
92779277
<para>
9278-
<function>pg_relation_size</> accepts the oid or name of a table, index or
9279-
toast table, and returns the size in bytes.
9278+
<function>pg_relation_size</> accepts the oid or name of a table, index or
9279+
toast table, and returns the size in bytes.
92809280
</para>
92819281
<para>
9282-
<function>pg_complete_relation_size</> accepts the oid or name of a table or
9283-
toast table, and returns the size in bytes of the data and all associated
9282+
<function>pg_complete_relation_size</> accepts the oid or name of a table or
9283+
toast table, and returns the size in bytes of the data and all associated
92849284
indexes and toast tables.
92859285
</para>
92869286
<para>
9287-
<function>pg_size_pretty</> can be used to format the size of the
9288-
database objects in a human readable way, using kB, MB, GB or TB as appropriate.
9287+
<function>pg_size_pretty</> can be used to format the size of the
9288+
database objects in a human readable way, using kB, MB, GB or TB as appropriate.
92899289
</para>
92909290

92919291
</sect1>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp