Doc: fix parameter names in the docs of a couple of functions.
authorTom Lane
Mon, 5 Oct 2020 15:42:33 +0000 (11:42 -0400)
committerTom Lane
Mon, 5 Oct 2020 15:42:33 +0000 (11:42 -0400)
The descriptions of make_interval() and pg_options_to_table()
were randomly different from the reality embedded in pg_proc.

(These are not all the discrepancies I found in a quick search,
but the others perhaps require more discussion, since there's
at least a case to be made for changing pg_proc not the docs.)

make_interval issue noted by Thomas Kellerer.

Discussion: https://postgr.es/m/7b154ef0-9f22-90b9-7734-4bf23686695b@gmx.net

doc/src/sgml/func.sgml

index ec8451d1b9b9d2fac2b4e55d1f27a841de4148df..e7cff980ddf9d088822cf555a8e051217187ea22 100644 (file)
@@ -8960,13 +8960,13 @@ SELECT regexp_match('abc01234xyz', '(?:(.*?)(\d+)(.*)){1,1}');
         
           make_interval
          
-         make_interval (  year int
-         month int
-         week int
-         day int
-         hour int
-         min int
-         sec double precision
+         make_interval (  years int
+         months int
+         weeks int
+         days int
+         hours int
+         mins int
+         secs double precision
           )
          interval
         
@@ -22416,7 +22416,7 @@ SELECT currval(pg_get_serial_sequence('sometable', 'id'));
         
          pg_options_to_table
         
-        pg_options_to_table ( reloptions text[] )
+        pg_options_to_table ( options_array text[] )
         setof record
         ( option_name text,
         option_value text )