Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 019eb96

Browse files
committed
Doc: fix parameter names in the docs of a couple of functions.
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
1 parent e01e339 commit 019eb96

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/src/sgml/func.sgml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8920,13 +8920,13 @@ SELECT regexp_match('abc01234xyz', '(?:(.*?)(\d+)(.*)){1,1}');
89208920
<entry role="func_table_entry"><para role="func_signature"><indexterm>
89218921
<primary>make_interval</primary>
89228922
</indexterm>
8923-
<function>make_interval</function> ( <optional> <parameter>year</parameter> <type>int</type>
8924-
<optional>, <parameter>month</parameter> <type>int</type>
8925-
<optional>, <parameter>week</parameter> <type>int</type>
8926-
<optional>, <parameter>day</parameter> <type>int</type>
8927-
<optional>, <parameter>hour</parameter> <type>int</type>
8928-
<optional>, <parameter>min</parameter> <type>int</type>
8929-
<optional>, <parameter>sec</parameter> <type>double precision</type>
8923+
<function>make_interval</function> ( <optional> <parameter>years</parameter> <type>int</type>
8924+
<optional>, <parameter>months</parameter> <type>int</type>
8925+
<optional>, <parameter>weeks</parameter> <type>int</type>
8926+
<optional>, <parameter>days</parameter> <type>int</type>
8927+
<optional>, <parameter>hours</parameter> <type>int</type>
8928+
<optional>, <parameter>mins</parameter> <type>int</type>
8929+
<optional>, <parameter>secs</parameter> <type>double precision</type>
89308930
</optional></optional></optional></optional></optional></optional></optional> )
89318931
<returnvalue>interval</returnvalue>
89328932
</para>
@@ -22387,7 +22387,7 @@ SELECT currval(pg_get_serial_sequence('sometable', 'id'));
2238722387
<indexterm>
2238822388
<primary>pg_options_to_table</primary>
2238922389
</indexterm>
22390-
<function>pg_options_to_table</function> ( <parameter>reloptions</parameter> <type>text[]</type> )
22390+
<function>pg_options_to_table</function> ( <parameter>options_array</parameter> <type>text[]</type> )
2239122391
<returnvalue>setof record</returnvalue>
2239222392
( <parameter>option_name</parameter> <type>text</type>,
2239322393
<parameter>option_value</parameter> <type>text</type> )

0 commit comments

Comments
 (0)