From: Heikki Linnakangas Date: Mon, 4 Nov 2024 16:28:40 +0000 (+0200) Subject: docs: Consistently use to indicate optional parameters X-Git-Tag: REL_18_BETA1~1548 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=0d829703363ba70844ff545ccc73befb2a7fed2e;p=postgresql.git docs: Consistently use to indicate optional parameters Some functions were using square brackets instead, replace them all with . Author: Dagfinn Ilmari Mannsåker Reviewed-by: jian he Discussion: https://www.postgresql.org/message-id/flat/CACJufxFfUbSph5UUSsZbL4SitbuPuW%3DEccpKgEaZrjtrPPuadQ@mail.gmail.com --- diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 223d869f8c8..cd525eac056 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -3036,7 +3036,7 @@ SELECT NOT(ROW(table.*) IS NOT NULL) FROM TABLE; -- detect at least one null in concat concat ( val1 "any" - [, val2 "any" [, ...] ] ) + , val2 "any" , ... ) text @@ -3056,7 +3056,7 @@ SELECT NOT(ROW(table.*) IS NOT NULL) FROM TABLE; -- detect at least one null in concat_ws ( sep text, val1 "any" - [, val2 "any" [, ...] ] ) + , val2 "any" , ... ) text @@ -3076,7 +3076,7 @@ SELECT NOT(ROW(table.*) IS NOT NULL) FROM TABLE; -- detect at least one null in format format ( formatstr text - [, formatarg "any" [, ...] ] ) + , formatarg "any" , ... ) text @@ -3170,7 +3170,7 @@ SELECT NOT(ROW(table.*) IS NOT NULL) FROM TABLE; -- detect at least one null in parse_ident parse_ident ( qualified_identifier text - [, strict_mode boolean DEFAULT true ] ) + , strict_mode boolean DEFAULT true ) text[] @@ -3309,8 +3309,8 @@ SELECT NOT(ROW(table.*) IS NOT NULL) FROM TABLE; -- detect at least one null in regexp_count regexp_count ( string text, pattern text - [, start integer - [, flags text ] ] ) + , start integer + , flags text ) integer @@ -3331,11 +3331,11 @@ SELECT NOT(ROW(table.*) IS NOT NULL) FROM TABLE; -- detect at least one null in regexp_instr regexp_instr ( string text, pattern text - [, start integer - [, N integer - [, endoption integer - [, flags text - [, subexpr integer ] ] ] ] ] ) + , start integer + , N integer + , endoption integer + , flags text + , subexpr integer ) integer @@ -3360,7 +3360,7 @@ SELECT NOT(ROW(table.*) IS NOT NULL) FROM TABLE; -- detect at least one null in regexp_like regexp_like ( string text, pattern text - [, flags text ] ) + , flags text ) boolean @@ -3380,7 +3380,7 @@ SELECT NOT(ROW(table.*) IS NOT NULL) FROM TABLE; -- detect at least one null in regexp_match - regexp_match ( string text, pattern text [, flags text ] ) + regexp_match ( string text, pattern text , flags text ) text[] @@ -3400,7 +3400,7 @@ SELECT NOT(ROW(table.*) IS NOT NULL) FROM TABLE; -- detect at least one null in regexp_matches - regexp_matches ( string text, pattern text [, flags text ] ) + regexp_matches ( string text, pattern text , flags text ) setof text[] @@ -3473,7 +3473,7 @@ SELECT NOT(ROW(table.*) IS NOT NULL) FROM TABLE; -- detect at least one null in regexp_split_to_array - regexp_split_to_array ( string text, pattern text [, flags text ] ) + regexp_split_to_array ( string text, pattern text , flags text ) text[] @@ -3492,7 +3492,7 @@ SELECT NOT(ROW(table.*) IS NOT NULL) FROM TABLE; -- detect at least one null in regexp_split_to_table - regexp_split_to_table ( string text, pattern text [, flags text ] ) + regexp_split_to_table ( string text, pattern text , flags text ) setof text @@ -3516,10 +3516,10 @@ SELECT NOT(ROW(table.*) IS NOT NULL) FROM TABLE; -- detect at least one null in regexp_substr regexp_substr ( string text, pattern text - [, start integer - [, N integer - [, flags text - [, subexpr integer ] ] ] ] ) + , start integer + , N integer + , flags text + , subexpr integer ) text @@ -3986,7 +3986,7 @@ SELECT NOT(ROW(table.*) IS NOT NULL) FROM TABLE; -- detect at least one null in -format(formatstr text [, formatarg "any" [, ...] ]) +format(formatstr text , formatarg "any" , ... ) formatstr is a format string that specifies how the result should be formatted. Text in the format string is copied @@ -10621,7 +10621,7 @@ SELECT date_part('hour', INTERVAL '4 hours 3 minutes'); -date_trunc(field, source [, time_zone ]) +date_trunc(field, source , time_zone ) source is a value expression of type timestamp, timestamp with time zone, @@ -29708,11 +29708,11 @@ DETAIL: Make sure pg_wal_replay_wait() isn't called within a transaction with a pg_logical_emit_message - pg_logical_emit_message ( transactional boolean, prefix text, content text [, flush boolean DEFAULT false] ) + pg_logical_emit_message ( transactional boolean, prefix text, content text , flush boolean DEFAULT false ) pg_lsn - pg_logical_emit_message ( transactional boolean, prefix text, content bytea [, flush boolean DEFAULT false] ) + pg_logical_emit_message ( transactional boolean, prefix text, content bytea , flush boolean DEFAULT false ) pg_lsn