You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ydb/docs/en/core/postgresql/_includes/functions.md
+21-21Lines changed: 21 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -461,9 +461,9 @@ Checks whether the string is in the specified Unicode normalization form. The op
461
461
```sql
462
462
U&'\0061\0308bc' IS NFD NORMALIZED → true
463
463
```||
464
-
||bit_length ( text ) → integer|Returns number of bits in the string (8 times the octet_length) (UNSUPPORTED)|
464
+
||bit_length ( text ) → integer|Returns number of bits in the string (8 times the octet_length)|
465
465
```sql
466
-
#bit_length('jose') → 32
466
+
bit_length('jose') → 32
467
467
```||
468
468
||char_length ( text ) → integer
469
469
character_length ( text ) → integer|
@@ -514,9 +514,9 @@ substring('Thomas' from '...$') → mas
514
514
```||
515
515
||substring ( string text SIMILAR pattern text ESCAPE escape text ) → text
516
516
substring ( string text FROM pattern text FOR escape text ) → text|
517
-
Extracts the first substring matching SQL regular expression; see Section 9.7.2. The first form has been specified since SQL:2003; the second form was only in SQL:1999 and should be considered obsolete. (NOT SUPPORTED)|
517
+
Extracts the first substring matching SQL regular expression; see Section 9.7.2. The first form has been specified since SQL:2003; the second form was only in SQL:1999 and should be considered obsolete.|
518
518
```sql
519
-
#substring('Thomas' similar '%#"o_a#"_' escape '#') → oma
519
+
substring('Thomas' similar '%#"o_a#"_' escape '#') → oma
520
520
```||
521
521
||trim ( [ LEADING \| TRAILING \| BOTH ] [ characters text ] FROM string text ) → text|
522
522
Removes the longest string containing only characters in characters (a space by default) from the start, end, or both ends (BOTH is the default) of string.|
@@ -602,9 +602,9 @@ Computes the MD5 hash of the argument, with the result written in hexadecimal.|
Splits qualified_identifier into an array of identifiers, removing any quoting of individual identifiers. By default, extra characters after the last identifier are considered an error; but if the second parameter is false, then such extra characters are ignored. (This behavior is useful for parsing names for objects like functions.) Note that this function does not truncate over-length identifiers. If you want truncation you can cast the result to name[]. (NOT SUPPORTED)|
605
+
Splits qualified_identifier into an array of identifiers, removing any quoting of individual identifiers. By default, extra characters after the last identifier are considered an error; but if the second parameter is false, then such extra characters are ignored. (This behavior is useful for parsing names for objects like functions.) Note that this function does not truncate over-length identifiers. If you want truncation you can cast the result to name[].|
Returns number of bits in the binary string (8 times the octet_length). (NOT SUPPORTED)|
771
+
Returns number of bits in the binary string (8 times the octet_length).|
772
772
```sql
773
-
#bit_length('\x123456'::bytea) → 24
773
+
bit_length('\x123456'::bytea) → 24
774
774
```||
775
775
||octet_length ( bytea ) → integer|
776
776
Returns number of bytes in the binary string.|
@@ -985,9 +985,9 @@ Returns the number of bits set in the bit string (also known as “popcount”).
985
985
bit_count(B'10111') → 4
986
986
```||
987
987
||bit_length ( bit ) → integer|
988
-
Returns number of bits in the bit string. (NOT SUPPORTED)|
988
+
Returns number of bits in the bit string.|
989
989
```sql
990
-
#bit_length(B'10111') → 5
990
+
bit_length(B'10111') → 5
991
991
```||
992
992
||length ( bit ) → integer|
993
993
Returns number of bits in the bit string.|
@@ -1145,13 +1145,13 @@ As with SIMILAR TO, the specified pattern must match the entire data string, or
1145
1145
1146
1146
The escape-double-quote separators actually divide substring's pattern into three independent regular expressions; for example, a vertical bar (|) in any of the three sections affects only that section. Also, the first and third of these regular expressions are defined to match the smallest possible amount of text, not the largest, when there is any ambiguity about how much of the data string matches which pattern. (In POSIX parlance, the first and third regular expressions are forced to be non-greedy.)
1147
1147
1148
-
As an extension to the SQL standard, PostgreSQL allows there to be just one escape-double-quote separator, in which case the third regular expression is taken as empty; or no separators, in which case the first and third regular expressions are taken as empty. (NOT SUPPORTED)
1148
+
As an extension to the SQL standard, PostgreSQL allows there to be just one escape-double-quote separator, in which case the third regular expression is taken as empty; or no separators, in which case the first and third regular expressions are taken as empty.
1149
1149
1150
1150
Some examples, with #" delimiting the return string:
1151
1151
1152
1152
```sql
1153
-
#substring('foobar' similar '%#"o_b#"%' escape '#') → oob
1154
-
#substring('foobar' similar '#"o_b#"%' escape '#') → NULL
1153
+
substring('foobar' similar '%#"o_b#"%' escape '#') → oob
1154
+
substring('foobar' similar '#"o_b#"%' escape '#') → NULL
1155
1155
```
1156
1156
1157
1157
9.7.3. POSIX Regular Expressions
@@ -1565,9 +1565,9 @@ Subtract arguments, producing a “symbolic” result that uses years and months
1565
1565
age(timestamp'2001-04-10', timestamp'1957-06-13') → 43 years 9 mons 27 days
1566
1566
```||
1567
1567
||age ( timestamp ) → interval|
1568
-
Subtract argument from current_date (at midnight) (NOT SUPPORTED)|
1568
+
Subtract argument from current_date (at midnight)|
1569
1569
```sql
1570
-
#age(timestamp '1957-06-13') → 62 years 6 mons 10 days
1570
+
age(timestamp'1957-06-13') ~→ 62 years 6 mons 10 days
1571
1571
```||
1572
1572
||clock_timestamp ( ) → timestamp with time zone|
1573
1573
Current date and time (changes during statement execution); see Section 9.9.5|
@@ -1753,7 +1753,7 @@ This expression yields true when two time periods (defined by their endpoints) o
Converts closed path to a polygon with the same list of points.|
@@ -3196,18 +3196,18 @@ Expands the top-level JSON array of objects to a set of rows having the composit
3196
3196
Returns target with the item designated by path replaced by new_value, or with new_value added if create_if_missing is true (which is the default) and the item designated by path does not exist. All earlier steps in the path must exist, or the target is returned unchanged. As with the path oriented operators, negative integers that appear in the path count from the end of JSON arrays. If the last path step is an array index that is out of range, and create_if_missing is true, the new value is added at the beginning of the array if the index is negative, or at the end of the array if it is positive.|
If new_value is not NULL, behaves identically to jsonb_set. Otherwise behaves according to the value of null_value_treatment which must be one of 'raise_exception', 'use_json_null', 'delete_key', or 'return_target'. The default is 'use_json_null'.|
Returns target with new_value inserted. If the item designated by the path is an array element, new_value will be inserted before that item if insert_after is false (which is the default), or after it if insert_after is true. If the item designated by the path is an object field, new_value will be inserted only if the object does not already contain that key. All earlier steps in the path must exist, or the target is returned unchanged. As with the path oriented operators, negative integers that appear in the path count from the end of JSON arrays. If the last path step is an array index that is out of range, the new value is added at the beginning of the array if the index is negative, or at the end of the array if it is positive.|
0 commit comments