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

Commite641d7b

Browse files
committed
docs: HTML-escape '>' in '=>' using HTML entities
1 parentb8fe12a commite641d7b

File tree

10 files changed

+34
-34
lines changed

10 files changed

+34
-34
lines changed

‎doc/src/sgml/ddl.sgml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1742,9 +1742,9 @@ GRANT UPDATE
17421742

17431743
<programlisting>
17441744
-- admin can view all rows and fields
1745-
postgres=> set role admin;
1745+
postgres=&gt; set role admin;
17461746
SET
1747-
postgres=> table passwd;
1747+
postgres=&gt; table passwd;
17481748
username | pwhash | uid | gid | real_name | home_phone | extra_info | home_dir | shell
17491749
----------+--------+-----+-----+-----------+--------------+------------+-------------+-----------
17501750
admin | xxx | 0 | 0 | Admin | 111-222-3333 | | /root | /bin/dash
@@ -1753,33 +1753,33 @@ postgres=> table passwd;
17531753
(3 rows)
17541754

17551755
-- Test what Alice is able to do
1756-
postgres=> set role alice;
1756+
postgres=&gt; set role alice;
17571757
SET
1758-
postgres=> table passwd;
1758+
postgres=&gt; table passwd;
17591759
ERROR: permission denied for relation passwd
1760-
postgres=> select username,real_name,home_phone,extra_info,home_dir,shell from passwd;
1760+
postgres=&gt; select username,real_name,home_phone,extra_info,home_dir,shell from passwd;
17611761
username | real_name | home_phone | extra_info | home_dir | shell
17621762
----------+-----------+--------------+------------+-------------+-----------
17631763
admin | Admin | 111-222-3333 | | /root | /bin/dash
17641764
bob | Bob | 123-456-7890 | | /home/bob | /bin/zsh
17651765
alice | Alice | 098-765-4321 | | /home/alice | /bin/zsh
17661766
(3 rows)
17671767

1768-
postgres=> update passwd set username = 'joe';
1768+
postgres=&gt; update passwd set username = 'joe';
17691769
ERROR: permission denied for relation passwd
17701770
-- Allowed to change her own real_name, but no others
1771-
postgres=> update passwd set real_name = 'Alice Doe';
1771+
postgres=&gt; update passwd set real_name = 'Alice Doe';
17721772
UPDATE 1
1773-
postgres=> update passwd set real_name = 'John Doe' where username = 'admin';
1773+
postgres=&gt; update passwd set real_name = 'John Doe' where username = 'admin';
17741774
UPDATE 0
1775-
postgres=> update passwd set shell = '/bin/xx';
1775+
postgres=&gt; update passwd set shell = '/bin/xx';
17761776
ERROR: new row violates WITH CHECK OPTION for "passwd"
1777-
postgres=> delete from passwd;
1777+
postgres=&gt; delete from passwd;
17781778
ERROR: permission denied for relation passwd
1779-
postgres=> insert into passwd (username) values ('xxx');
1779+
postgres=&gt; insert into passwd (username) values ('xxx');
17801780
ERROR: permission denied for relation passwd
17811781
-- Alice can change her own password
1782-
postgres=> update passwd set pwhash = 'abc';
1782+
postgres=&gt; update passwd set pwhash = 'abc';
17831783
UPDATE 1
17841784
</programlisting>
17851785

‎doc/src/sgml/ecpg.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1404,7 +1404,7 @@ CREATE TABLE t3 (
14041404
ii integer[]
14051405
);
14061406

1407-
testdb=> SELECT * FROM t3;
1407+
testdb=&gt; SELECT * FROM t3;
14081408
ii
14091409
-------------
14101410
{1,2,3,4,5}

‎doc/src/sgml/func.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6813,7 +6813,7 @@ SELECT regexp_matches('abc01234xyz', '(?:(.*?)(\d+)(.*)){1,1}');
68136813
Create interval from years, months, weeks, days, hours, minutes and
68146814
seconds fields
68156815
</entry>
6816-
<entry><literal>make_interval(days => 10)</literal></entry>
6816+
<entry><literal>make_interval(days =&gt; 10)</literal></entry>
68176817
<entry><literal>10 days</literal></entry>
68186818
</row>
68196819

‎doc/src/sgml/hstore.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,23 +381,23 @@ b
381381
<entry><type>hstore</type></entry>
382382
<entry>delete pair with matching key</entry>
383383
<entry><literal>delete('a=&gt;1,b=&gt;2','b')</literal></entry>
384-
<entry><literal>"a"=>"1"</literal></entry>
384+
<entry><literal>"a"=&gt;"1"</literal></entry>
385385
</row>
386386

387387
<row>
388388
<entry><function>delete(hstore,text[])</function></entry>
389389
<entry><type>hstore</type></entry>
390390
<entry>delete pairs with matching keys</entry>
391391
<entry><literal>delete('a=&gt;1,b=&gt;2,c=&gt;3',ARRAY['a','b'])</literal></entry>
392-
<entry><literal>"c"=>"3"</literal></entry>
392+
<entry><literal>"c"=&gt;"3"</literal></entry>
393393
</row>
394394

395395
<row>
396396
<entry><function>delete(hstore,hstore)</function></entry>
397397
<entry><type>hstore</type></entry>
398398
<entry>delete pairs matching those in the second argument</entry>
399399
<entry><literal>delete('a=&gt;1,b=&gt;2','a=&gt;4,b=&gt;2'::hstore)</literal></entry>
400-
<entry><literal>"a"=>"1"</literal></entry>
400+
<entry><literal>"a"=&gt;"1"</literal></entry>
401401
</row>
402402

403403
<row>

‎doc/src/sgml/pgstattuple.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
target relation's name (optionally schema-qualified) or OID.
3333
For example:
3434
<programlisting>
35-
test=> SELECT * FROM pgstattuple('pg_catalog.pg_proc');
35+
test=&gt; SELECT * FROM pgstattuple('pg_catalog.pg_proc');
3636
-[ RECORD 1 ]------+-------
3737
table_len | 458752
3838
tuple_count | 1470
@@ -150,7 +150,7 @@ free_percent | 1.95
150150
<function>pgstatindex</function> returns a record showing information
151151
about a B-tree index. For example:
152152
<programlisting>
153-
test=> SELECT * FROM pgstatindex('pg_cast_oid_index');
153+
test=&gt; SELECT * FROM pgstatindex('pg_cast_oid_index');
154154
-[ RECORD 1 ]------+------
155155
version | 2
156156
tree_level | 0
@@ -280,7 +280,7 @@ leaf_fragmentation | 0
280280
<function>pgstatginindex</function> returns a record showing information
281281
about a GIN index. For example:
282282
<programlisting>
283-
test=> SELECT * FROM pgstatginindex('test_gin_index');
283+
test=&gt; SELECT * FROM pgstatginindex('test_gin_index');
284284
-[ RECORD 1 ]--+--
285285
version | 1
286286
pending_pages | 0
@@ -373,7 +373,7 @@ pending_tuples | 0
373373
The argument is the target relation's OID.
374374
For example:
375375
<programlisting>
376-
test=> SELECT * FROM pgstattuple_approx('pg_catalog.pg_proc'::regclass);
376+
test=&gt; SELECT * FROM pgstattuple_approx('pg_catalog.pg_proc'::regclass);
377377
-[ RECORD 1 ]--------+-------
378378
table_len | 573440
379379
scanned_percent | 2

‎doc/src/sgml/queries.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1885,7 +1885,7 @@ SELECT 3, 'three';
18851885
it's usually better to override the default names with a table alias
18861886
list, like this:
18871887
<programlisting>
1888-
=> SELECT * FROM (VALUES (1, 'one'), (2, 'two'), (3, 'three')) AS t (num,letter);
1888+
=&gt; SELECT * FROM (VALUES (1, 'one'), (2, 'two'), (3, 'three')) AS t (num,letter);
18891889
num | letter
18901890
-----+--------
18911891
1 | one

‎doc/src/sgml/rules.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2100,7 +2100,7 @@ CREATE VIEW phone_number AS
21002100
<programlisting>
21012101
CREATE FUNCTION tricky(text, text) RETURNS bool AS $$
21022102
BEGIN
2103-
RAISE NOTICE '% => %', $1, $2;
2103+
RAISE NOTICE '% =&gt; %', $1, $2;
21042104
RETURN true;
21052105
END
21062106
$$ LANGUAGE plpgsql COST 0.0000000000000000000001;

‎doc/src/sgml/seg.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
when you fetch it? Watch:
4141

4242
<screen>
43-
test=> select 6.50 :: float8 as "pH";
43+
test=&gt; select 6.50 :: float8 as "pH";
4444
pH
4545
---
4646
6.5
@@ -66,7 +66,7 @@ test=> select 6.50 :: float8 as "pH";
6666
Check this out:
6767

6868
<screen>
69-
test=> select '6.25 .. 6.50'::seg as "pH";
69+
test=&gt; select '6.25 .. 6.50'::seg as "pH";
7070
pH
7171
------------
7272
6.25 .. 6.50
@@ -359,7 +359,7 @@ test=> select '6.25 .. 6.50'::seg as "pH";
359359
boundary if the resulting interval includes a power of ten:
360360

361361
<screen>
362-
postgres=> select '10(+-)1'::seg as seg;
362+
postgres=&gt; select '10(+-)1'::seg as seg;
363363
seg
364364
---------
365365
9.0 .. 11 -- should be: 9 .. 11

‎doc/src/sgml/syntax.sgml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2592,10 +2592,10 @@ SELECT concat_lower_or_upper('Hello', 'World');
25922592

25932593
<para>
25942594
In named notation, each argument's name is specified using
2595-
<literal>=></literal> to separate it from the argument expression.
2595+
<literal>=&gt;</literal> to separate it from the argument expression.
25962596
For example:
25972597
<screen>
2598-
SELECT concat_lower_or_upper(a => 'Hello', b => 'World');
2598+
SELECT concat_lower_or_upper(a =&gt; 'Hello', b =&gt; 'World');
25992599
concat_lower_or_upper
26002600
-----------------------
26012601
hello world
@@ -2606,13 +2606,13 @@ SELECT concat_lower_or_upper(a => 'Hello', b => 'World');
26062606
using named notation is that the arguments may be specified in any
26072607
order, for example:
26082608
<screen>
2609-
SELECT concat_lower_or_upper(a => 'Hello', b => 'World', uppercase => true);
2609+
SELECT concat_lower_or_upper(a =&gt; 'Hello', b =&gt; 'World', uppercase =&gt; true);
26102610
concat_lower_or_upper
26112611
-----------------------
26122612
HELLO WORLD
26132613
(1 row)
26142614

2615-
SELECT concat_lower_or_upper(a => 'Hello', uppercase => true, b => 'World');
2615+
SELECT concat_lower_or_upper(a =&gt; 'Hello', uppercase =&gt; true, b =&gt; 'World');
26162616
concat_lower_or_upper
26172617
-----------------------
26182618
HELLO WORLD
@@ -2645,7 +2645,7 @@ SELECT concat_lower_or_upper(a => 'Hello', uppercase => true, b => 'World');
26452645
already mentioned, named arguments cannot precede positional arguments.
26462646
For example:
26472647
<screen>
2648-
SELECT concat_lower_or_upper('Hello', 'World', uppercase => true);
2648+
SELECT concat_lower_or_upper('Hello', 'World', uppercase =&gt; true);
26492649
concat_lower_or_upper
26502650
-----------------------
26512651
HELLO WORLD

‎doc/src/sgml/xfunc.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -776,14 +776,14 @@ SELECT mleast(VARIADIC ARRAY[]::numeric[]);
776776
<literal>VARIADIC</>. For example, this will work:
777777

778778
<screen>
779-
SELECT mleast(VARIADIC arr => ARRAY[10, -1, 5, 4.4]);
779+
SELECT mleast(VARIADIC arr =&gt; ARRAY[10, -1, 5, 4.4]);
780780
</screen>
781781

782782
but not these:
783783

784784
<screen>
785-
SELECT mleast(arr => 10);
786-
SELECT mleast(arr => ARRAY[10, -1, 5, 4.4]);
785+
SELECT mleast(arr =&gt; 10);
786+
SELECT mleast(arr =&gt; ARRAY[10, -1, 5, 4.4]);
787787
</screen>
788788
</para>
789789
</sect2>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp