Marginal hacks to make tables format more nicely.
authorTom Lane
Sat, 13 Sep 2003 00:19:43 +0000 (00:19 +0000)
committerTom Lane
Sat, 13 Sep 2003 00:19:43 +0000 (00:19 +0000)
doc/src/sgml/func.sgml

index 617f51f095e33561bf0a785505c880807c6fa4ee..463e3c7a21e03d544dc31e54ef0989ad29368739 100644 (file)
@@ -1,5 +1,5 @@
 
 
@@ -1047,7 +1047,7 @@ PostgreSQL documentation
         in characters from the start and end of
         string.
        
-       btrim('xyxtrimyyx','xy')
+       btrim('xyxtrimyyx', 'xy')
        trim
       
 
@@ -1074,7 +1074,7 @@ PostgreSQL documentation
         src_encoding is omitted, database
         encoding is assumed.
        
-       convert('text_in_unicode', 'UNICODE', 'LATIN1')
+       convert( 'text_in_unicode', 'UNICODE', 'LATIN1')
        text_in_unicode represented in ISO 8859-1 encoding
       
 
@@ -1102,7 +1102,7 @@ PostgreSQL documentation
         Encode binary data to ASCII-only representation.  Supported
         types are: base64, hex, escape.
        
-       encode('123\\000\\001', 'base64')
+       encode( '123\\000\\001', 'base64')
        MTIzAAE=
              
 
@@ -1159,7 +1159,7 @@ PostgreSQL documentation
         Remove the longest string containing only characters from
         characters from the start of the string.
        
-       ltrim('zzzytrim','xyz')
+       ltrim('zzzytrim', 'xyz')
        trim
       
 
@@ -1170,7 +1170,7 @@ PostgreSQL documentation
         Calculates the MD5 hash of given string, returning the result in hexadecimal.
        
        md5('abc')
-       900150983cd24fb0d6963f7d28e17f72
+       900150983cd24fb0 d6963f7d28e17f72
       
 
       
@@ -1205,7 +1205,7 @@ PostgreSQL documentation
    in an SQL statement string.
    Embedded quotes and backslashes are properly doubled.
        
-       quote_literal('O\'Reilly')
+       quote_literal( 'O\'Reilly')
        'O''Reilly'
       
 
@@ -1225,7 +1225,7 @@ PostgreSQL documentation
        Replace all occurrences in string of substring
         from with substring to.
        
-       replace('abcdefabcdef', 'cd', 'XX')
+       replace( 'abcdefabcdef', 'cd', 'XX')
        abXXefabXXef
       
 
@@ -1255,7 +1255,7 @@ PostgreSQL documentation
         Remove the longest string containing only characters from
         characters from the end of the string.
        
-       rtrim('trimxxxx','x')
+       rtrim('trimxxxx', 'x')
        trim
       
 
@@ -1267,7 +1267,7 @@ PostgreSQL documentation
        Split string on delimiter
         and return the given field (counting from one)
        
-       split_part('abc~@~def~@~ghi','~@~',2)
+       split_part( 'abc~@~def~@~ghi', '~@~', 2)
        def
       
 
@@ -1280,7 +1280,7 @@ PostgreSQL documentation
          string), but note the reversed
         argument order)
        
-       strpos('high','ig')
+       strpos('high', 'ig')
        2
       
 
@@ -1321,8 +1321,8 @@ PostgreSQL documentation
        Convert number to its equivalent hexadecimal
         representation
        
-       to_hex(9223372036854775807)
-       7fffffffffffffff
+       to_hex(2147483647)
+       7fffffff
       
 
       
@@ -2111,15 +2111,15 @@ PostgreSQL documentation
          concatenation
         
        
-       '\\\\Post'::bytea || '\\047greSQL\\000'::bytea
-       \\Post'greSQL\000
+       '\\\\Post'::bytea || '\\047gres\\000'::bytea
+       \\Post'gres\000
       
 
       
        octet_length(string)
        integer
        Number of bytes in binary string
-       octet_length('jo\\000se'::bytea)
+       octet_length( 'jo\\000se'::bytea)
        5
       
 
@@ -2248,7 +2248,7 @@ PostgreSQL documentation
         in bytes from the start and end of
         string.
       
-      btrim('\\000trim\\000'::bytea,'\\000'::bytea)
+      btrim('\\000trim\\000'::bytea, '\\000'::bytea)
       trim
      
 
@@ -6027,10 +6027,10 @@ SELECT TIMESTAMP 'now';
    24
        
        
-   set_masklen(inet,integer)
+   set_masklen(inet, integer)
    inet
    set netmask length for inet value
-   set_masklen('192.168.1.5/24',16)
+   set_masklen('192.168.1.5/24', 16)
    192.168.1.5/16