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

Commit6099bc0

Browse files
committed
Adjust documentation examples to match recent error message rewordings.
A couple other minor fixes.
1 parent444af9e commit6099bc0

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

‎doc/src/sgml/advanced.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/advanced.sgml,v 1.36 2003/09/1222:17:18 tgl Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/advanced.sgml,v 1.37 2003/09/30 03:22:32 tgl Exp $
33
-->
44

55
<chapter id="tutorial-advanced">
@@ -123,8 +123,8 @@ INSERT INTO weather VALUES ('Berkeley', 45, 53, 0.0, '1994-11-28');
123123
</programlisting>
124124

125125
<screen>
126-
ERROR: insert or update on "weather" violates foreign key constraint "$1"
127-
DETAIL: Key (city)=(Berkeley) is not present in "cities".
126+
ERROR: insert or update ontable"weather" violates foreign key constraint "$1"
127+
DETAIL: Key (city)=(Berkeley) is not present intable"cities".
128128
</screen>
129129
</para>
130130

‎doc/src/sgml/func.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.175 2003/09/20 20:12:04 tgl Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.176 2003/09/30 03:22:33 tgl Exp $
33
PostgreSQL documentation
44
-->
55

@@ -6422,7 +6422,7 @@ SELECT ... WHERE CASE WHEN x &lt;&gt; 0 THEN y/x &gt; 1.5 ELSE false END;
64226422
</indexterm>
64236423

64246424
<synopsis>
6425-
<function>coalesce</function>(<replaceable>value</replaceable> <optional>, ...</optional>)
6425+
<function>COALESCE</function>(<replaceable>value</replaceable> <optional>, ...</optional>)
64266426
</synopsis>
64276427

64286428
<para>
@@ -7610,7 +7610,7 @@ SELECT min(col) FROM sometable;
76107610
Fortunately, there is a simple workaround for
76117611
<function>min()</function> and <function>max()</function>. The
76127612
query shown below is equivalent to the query above, except that it
7613-
can take advantage of a B+-Tree index if there is one present on
7613+
can take advantage of a B-tree index if there is one present on
76147614
the column in question.
76157615
<programlisting>
76167616
SELECT col FROM sometable ORDER BY col ASC LIMIT 1;

‎doc/src/sgml/indices.sgml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/indices.sgml,v 1.44 2003/09/11 21:42:19 momjian Exp $ -->
1+
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/indices.sgml,v 1.45 2003/09/30 03:22:33 tgl Exp $ -->
22

33
<chapter id="indexes">
44
<title id="indexes-title">Indexes</title>
@@ -722,9 +722,11 @@ CREATE UNIQUE INDEX tests_success_constraint ON tests (subject, target)
722722
Although indexes in <productname>PostgreSQL</> do not need
723723
maintenance and tuning, it is still important to check
724724
which indexes are actually used by the real-life query workload.
725-
Examining index usage is done with the <command>EXPLAIN</> command;
726-
its application for this purpose is illustrated in <xref
727-
linkend="using-explain">.
725+
Examining index usage for an individual query is done with the
726+
<command>EXPLAIN</> command; its application for this purpose is
727+
illustrated in <xref linkend="using-explain">.
728+
It is also possible to gather overall statistics about index usage
729+
in a running server, as described in <xref linkend="monitoring-stats">.
728730
</para>
729731

730732
<para>

‎doc/src/sgml/typeconv.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/typeconv.sgml,v 1.34 2003/09/1222:17:24 tgl Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/typeconv.sgml,v 1.35 2003/09/30 03:22:33 tgl Exp $
33
-->
44

55
<chapter Id="typeconv">
@@ -434,7 +434,7 @@ not some other type was used:
434434
<screen>
435435
SELECT @ '-4.5e500' AS "abs";
436436

437-
ERROR: "-4.5e500" is out of range forfloat8
437+
ERROR: "-4.5e500" is out of range fortype double precision
438438
</screen>
439439
</para>
440440

@@ -447,7 +447,7 @@ SELECT '20' ! AS "factorial";
447447

448448
ERROR: operator is not unique: "unknown" !
449449
HINT: Could not choose a best candidate operator. You may need to add explicit
450-
typecasts.
450+
type casts.
451451
</screen>
452452
This happens because the system can't decide which of the several
453453
possible <literal>!</> operators should be preferred. We can help

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp