11<!--
2- $Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.173 2003/09/12 22:17:22 tgl Exp $
2+ $Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.174 2003/09/13 00:19:43 tgl Exp $
33PostgreSQL documentation
44-->
55
@@ -1047,7 +1047,7 @@ PostgreSQL documentation
10471047 in <parameter>characters</parameter> from the start and end of
10481048 <parameter>string</parameter>.
10491049 </entry>
1050- <entry><literal>btrim('xyxtrimyyx','xy')</literal></entry>
1050+ <entry><literal>btrim('xyxtrimyyx', 'xy')</literal></entry>
10511051 <entry><literal>trim</literal></entry>
10521052 </row>
10531053
@@ -1074,7 +1074,7 @@ PostgreSQL documentation
10741074 <parameter>src_encoding</parameter> is omitted, database
10751075 encoding is assumed.
10761076 </entry>
1077- <entry><literal>convert('text_in_unicode', 'UNICODE', 'LATIN1')</literal></entry>
1077+ <entry><literal>convert( 'text_in_unicode', 'UNICODE', 'LATIN1')</literal></entry>
10781078 <entry><literal>text_in_unicode</literal> represented in ISO 8859-1 encoding</entry>
10791079 </row>
10801080
@@ -1102,7 +1102,7 @@ PostgreSQL documentation
11021102 Encode binary data to <acronym>ASCII</acronym>-only representation. Supported
11031103 types are: <literal>base64</>, <literal>hex</>, <literal>escape</>.
11041104 </entry>
1105- <entry><literal>encode('123\\000\\001', 'base64')</literal></entry>
1105+ <entry><literal>encode( '123\\000\\001', 'base64')</literal></entry>
11061106 <entry><literal>MTIzAAE=</literal></entry>
11071107 </row>
11081108
@@ -1159,7 +1159,7 @@ PostgreSQL documentation
11591159 Remove the longest string containing only characters from
11601160 <parameter>characters</parameter> from the start of the string.
11611161 </entry>
1162- <entry><literal>ltrim('zzzytrim','xyz')</literal></entry>
1162+ <entry><literal>ltrim('zzzytrim', 'xyz')</literal></entry>
11631163 <entry><literal>trim</literal></entry>
11641164 </row>
11651165
@@ -1170,7 +1170,7 @@ PostgreSQL documentation
11701170 Calculates the MD5 hash of given string, returning the result in hexadecimal.
11711171 </entry>
11721172 <entry><literal>md5('abc')</literal></entry>
1173- <entry><literal>900150983cd24fb0d6963f7d28e17f72 </literal></entry>
1173+ <entry><literal>900150983cd24fb0 d6963f7d28e17f72 </literal></entry>
11741174 </row>
11751175
11761176 <row>
@@ -1205,7 +1205,7 @@ PostgreSQL documentation
12051205in an <acronym>SQL</acronym> statement string.
12061206Embedded quotes and backslashes are properly doubled.
12071207 </entry>
1208- <entry><literal>quote_literal('O\'Reilly')</literal></entry>
1208+ <entry><literal>quote_literal( 'O\'Reilly')</literal></entry>
12091209 <entry><literal>'O''Reilly'</literal></entry>
12101210 </row>
12111211
@@ -1225,7 +1225,7 @@ PostgreSQL documentation
12251225 <entry>Replace all occurrences in <parameter>string</parameter> of substring
12261226 <parameter>from</parameter> with substring <parameter>to</parameter>.
12271227 </entry>
1228- <entry><literal>replace('abcdefabcdef', 'cd', 'XX')</literal></entry>
1228+ <entry><literal>replace( 'abcdefabcdef', 'cd', 'XX')</literal></entry>
12291229 <entry><literal>abXXefabXXef</literal></entry>
12301230 </row>
12311231
@@ -1255,7 +1255,7 @@ PostgreSQL documentation
12551255 Remove the longest string containing only characters from
12561256 <parameter>characters</parameter> from the end of the string.
12571257 </entry>
1258- <entry><literal>rtrim('trimxxxx','x')</literal></entry>
1258+ <entry><literal>rtrim('trimxxxx', 'x')</literal></entry>
12591259 <entry><literal>trim</literal></entry>
12601260 </row>
12611261
@@ -1267,7 +1267,7 @@ PostgreSQL documentation
12671267 <entry>Split <parameter>string</parameter> on <parameter>delimiter</parameter>
12681268 and return the given field (counting from one)
12691269 </entry>
1270- <entry><literal>split_part('abc~@~def~@~ghi','~@~',2)</literal></entry>
1270+ <entry><literal>split_part( 'abc~@~def~@~ghi', '~@~', 2)</literal></entry>
12711271 <entry><literal>def</literal></entry>
12721272 </row>
12731273
@@ -1280,7 +1280,7 @@ PostgreSQL documentation
12801280 <parameter>string</parameter>)</literal>, but note the reversed
12811281 argument order)
12821282 </entry>
1283- <entry><literal>strpos('high','ig')</literal></entry>
1283+ <entry><literal>strpos('high', 'ig')</literal></entry>
12841284 <entry><literal>2</literal></entry>
12851285 </row>
12861286
@@ -1321,8 +1321,8 @@ PostgreSQL documentation
13211321 <entry>Convert <parameter>number</parameter> to its equivalent hexadecimal
13221322 representation
13231323 </entry>
1324- <entry><literal>to_hex(9223372036854775807 )</literal></entry>
1325- <entry><literal>7fffffffffffffff </literal></entry>
1324+ <entry><literal>to_hex(2147483647 )</literal></entry>
1325+ <entry><literal>7fffffff </literal></entry>
13261326 </row>
13271327
13281328 <row>
@@ -2111,15 +2111,15 @@ PostgreSQL documentation
21112111 <secondary>concatenation</secondary>
21122112 </indexterm>
21132113 </entry>
2114- <entry><literal>'\\\\Post'::bytea || '\\047greSQL \\000'::bytea</literal></entry>
2115- <entry><literal>\\Post'greSQL \000</literal></entry>
2114+ <entry><literal>'\\\\Post'::bytea || '\\047gres \\000'::bytea</literal></entry>
2115+ <entry><literal>\\Post'gres \000</literal></entry>
21162116 </row>
21172117
21182118 <row>
21192119 <entry><literal><function>octet_length</function>(<parameter>string</parameter>)</literal></entry>
21202120 <entry><type>integer</type></entry>
21212121 <entry>Number of bytes in binary string</entry>
2122- <entry><literal>octet_length('jo\\000se'::bytea)</literal></entry>
2122+ <entry><literal>octet_length( 'jo\\000se'::bytea)</literal></entry>
21232123 <entry><literal>5</literal></entry>
21242124 </row>
21252125
@@ -2248,7 +2248,7 @@ PostgreSQL documentation
22482248 in <parameter>bytes</parameter> from the start and end of
22492249 <parameter>string</parameter>.
22502250 </entry>
2251- <entry><literal>btrim('\\000trim\\000'::bytea,'\\000'::bytea)</literal></entry>
2251+ <entry><literal>btrim('\\000trim\\000'::bytea, '\\000'::bytea)</literal></entry>
22522252 <entry><literal>trim</literal></entry>
22532253 </row>
22542254
@@ -6027,10 +6027,10 @@ SELECT TIMESTAMP 'now';
60276027<entry><literal>24</literal></entry>
60286028 </row>
60296029 <row>
6030- <entry><literal><function>set_masklen</function>(<type>inet</type>,<type>integer</type>)</literal></entry>
6030+ <entry><literal><function>set_masklen</function>(<type>inet</type>, <type>integer</type>)</literal></entry>
60316031<entry><type>inet</type></entry>
60326032<entry>set netmask length for <type>inet</type> value</entry>
6033- <entry><literal>set_masklen('192.168.1.5/24',16)</literal></entry>
6033+ <entry><literal>set_masklen('192.168.1.5/24', 16)</literal></entry>
60346034<entry><literal>192.168.1.5/16</literal></entry>
60356035 </row>
60366036 <row>