Skip to content

Commit 91cf5ef

Browse files
committed
Document that btrim()'s second parameter is optional, and defaults to spaces.
1 parent 40b6d68 commit 91cf5ef

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/src/sgml/func.sgml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.225 2004/12/01 19:32:12 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.226 2004/12/02 17:14:54 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -1070,12 +1070,13 @@ PostgreSQL documentation
10701070
</row>
10711071

10721072
<row>
1073-
<entry><literal><function>btrim</function>(<parameter>string</parameter> <type>text</type>, <parameter>characters</parameter> <type>text</type>)</literal></entry>
1073+
<entry><literal><function>btrim</function>(<parameter>string</parameter> <type>text</type>
1074+
<optional>, <parameter>characters</parameter> <type>text</type></optional>)</literal></entry>
10741075
<entry><type>text</type></entry>
10751076
<entry>
10761077
Remove the longest string consisting only of characters
1077-
in <parameter>characters</parameter> from the start and end of
1078-
<parameter>string</parameter>.
1078+
in <parameter>characters</parameter> (or spaces if not supplied)
1079+
from the start and end of <parameter>string</parameter>.
10791080
</entry>
10801081
<entry><literal>btrim('xyxtrimyyx', 'xy')</literal></entry>
10811082
<entry><literal>trim</literal></entry>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy