Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Category index908
jsonb_extract_path_textjsonb_extract_path_text
Json Functions And Operators
10
Returns JSON value pointed to by path_elems as text (equivalent to #>> operator).
jsonb_extract_path_text ( from_json jsonb, VARIADIC …Functions · Json Functions And Operators
jsonb_insertjsonb_insert
Json Functions And Operators
10
Returns target with new_value inserted. If target section designated by path is in a JSONB array, new_value will be inserted before target or aft…Functions · Json Functions And Operators
jsonb_objectjsonb_object
Json Functions And Operators
10
Builds a JSON object out of a text array. The array must have either exactly one dimension with an even number of members, in which case they are…Functions · Json Functions And Operators
jsonb_object_aggjsonb_object_agg
Aggregate Functions
10
aggregates name/value pairs as a JSON object; values can be null, but not names
jsonb_object_agg ( name, value ) → jsonb aggregates name/value pairs a…Functions · Aggregate Functions
jsonb_object_agg_strictjsonb_object_agg_strict
Aggregate Functions
16
Collects all the key/value pairs into a JSON object. Key arguments are coerced to text; value arguments are converted as per to_json or to_json…Functions · Aggregate Functions
jsonb_object_agg_uniquejsonb_object_agg_unique
Aggregate Functions
16
Collects all the key/value pairs into a JSON object. Key arguments are coerced to text; value arguments are converted as per to_json or to_json…Functions · Aggregate Functions
jsonb_object_agg_unique_strictjsonb_object_agg_unique_strict
Aggregate Functions
16
Collects all the key/value pairs into a JSON object. Key arguments are coerced to text; value arguments are converted as per to_json or …Functions · Aggregate Functions
jsonb_object_keysjsonb_object_keys
Json Functions And Operators
10
Returns set of keys in the outermost JSON object.
jsonb_object_keys ( jsonb ) → setof text Returns set of keys in the outermost JSON object.…Functions · Json Functions And Operators
jsonb_path_existsjsonb_path_exists
Json Functions And Operators
12
Checks whether JSON path returns any item for the specified JSON value.
jsonb_path_exists ( target jsonb, path jsonpath [, vars jsonb [, sil…Functions · Json Functions And Operators
jsonb_path_exists_tzjsonb_path_exists_tz
Json Functions And Operators
13
These functions act like their counterparts described above without the _tz suffix, except that these functions support comparisons of da…Functions · Json Functions And Operators
jsonb_path_matchjsonb_path_match
Json Functions And Operators
12
Returns the result of JSON path predicate check for the specified JSON value. Only the first item of the result is taken into account. If the…Functions · Json Functions And Operators
jsonb_path_match_tzjsonb_path_match_tz
Json Functions And Operators
13
These functions act like their counterparts described above without the _tz suffix, except that these functions support comparisons of dat…Functions · Json Functions And Operators
jsonb_path_queryjsonb_path_query
Json Functions And Operators
12
Gets all JSON items returned by JSON path for the specified JSON value.
jsonb_path_query ( target jsonb, path jsonpath [, vars jsonb [, silen…Functions · Json Functions And Operators
jsonb_path_query_arrayjsonb_path_query_array
Json Functions And Operators
12
Gets all JSON items returned by JSON path for the specified JSON value and wraps result into an array.
jsonb_path_query_array ( target …Functions · Json Functions And Operators
jsonb_path_query_array_tzjsonb_path_query_array_tz
Json Functions And Operators
13
These functions act like their counterparts described above without the _tz suffix, except that these functions support comparisons …Functions · Json Functions And Operators
jsonb_path_query_firstjsonb_path_query_first
Json Functions And Operators
12
Gets the first JSON item returned by JSON path for the specified JSON value. Returns NULL on no results.
jsonb_path_query_first ( targe…Functions · Json Functions And Operators
jsonb_path_query_first_tzjsonb_path_query_first_tz
Json Functions And Operators
13
These functions act like their counterparts described above without the _tz suffix, except that these functions support comparisons …Functions · Json Functions And Operators
jsonb_path_query_tzjsonb_path_query_tz
Json Functions And Operators
13
These functions act like their counterparts described above without the _tz suffix, except that these functions support comparisons of dat…Functions · Json Functions And Operators
jsonb_populate_recordjsonb_populate_record
Json Functions And Operators
10
Expands the object in from_json to a row whose columns match the record type defined by base (see note below).
jsonb_populate_record ( b…Functions · Json Functions And Operators
jsonb_populate_record_validjsonb_populate_record_valid
Json Functions And Operators
17
Function for testing jsonb_populate_record. Returns true if the input jsonb_populate_record would finish without an error for the …Functions · Json Functions And Operators
jsonb_populate_recordsetjsonb_populate_recordset
Json Functions And Operators
10
Expands the outermost array of objects in from_json to a set of rows whose columns match the record type defined by base (see note be…Functions · Json Functions And Operators
jsonb_prettyjsonb_pretty
Json Functions And Operators
10
Returns from_json as indented JSON text.
jsonb_pretty ( from_json jsonb ) → text Returns from_json as indented JSON text.
11
12
13
Converts the g…Functions · Json Functions And Operators
jsonb_set_laxjsonb_set_lax
Json Functions And Operators
13
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 o…Functions · Json Functions And Operators
jsonb_strip_nullsjsonb_strip_nulls
Json Functions And Operators
10
Returns from_json with all object fields that have null values omitted. Other null values are untouched.
jsonb_strip_nulls ( from_json jsonb…Functions · Json Functions And Operators
jsonb_to_recordjsonb_to_record
Json Functions And Operators
10
Builds an arbitrary record from a JSON object (see note below). As with all functions returning record, the caller must explicitly define the …Functions · Json Functions And Operators
jsonb_to_recordsetjsonb_to_recordset
Json Functions And Operators
10
Builds an arbitrary set of records from a JSON array of objects (see note below). As with all functions returning record, the caller must e…Functions · Json Functions And Operators
jsonb_to_tsvectorjsonb_to_tsvector
Text Search Functions And Operators
13
Selects each item in the JSON document that is requested by the filter and converts each one to a tsvector, normalizing words accordi…Functions · Text Search Functions And Operators
jsonb_typeofjsonb_typeof
Json Functions And Operators
10
Returns the type of the outermost JSON value as a text string. Possible types are object, array, string, number, boolean, and null.
jsonb_typeof …Functions · Json Functions And Operators
justify_daysjustify_days
Date/Time Functions And Operators
10
Adjust interval so 30-day time periods are represented as months
justify_days ( interval ) → interval Adjust interval so 30-day time periods…Functions · Date/Time Functions And Operators
justify_hoursjustify_hours
Date/Time Functions And Operators
10
Adjust interval so 24-hour time periods are represented as days
justify_hours ( interval ) → interval Adjust interval so 24-hour time perio…Functions · Date/Time Functions And Operators
justify_intervaljustify_interval
Date/Time Functions And Operators
10
Adjust interval using justify_days and justify_hours, with additional sign adjustments
justify_interval ( interval ) → interval Adjust i…Functions · Date/Time Functions And Operators
laglag
Window Functions
10
returns value evaluated at the row that is offset rows before the current row within the partition; if there is no such row, instead return default (which must be of …Functions · Window Functions
last_valuelast_value
Window Functions
10
returns value evaluated at the row that is the last row of the window frame
last_value ( value any ) → same type as value returns value evaluated at the row th…Functions · Window Functions
lastvallastval
Sequence Manipulation Functions
10
Return value most recently obtained with nextval for any sequence
lastval ( ) → bigint Return value most recently obtained with nextval for any seq…Functions · Sequence Manipulation Functions
latitudelatitude ( earth ) → float8 Returns the latitude in degrees of a point on the surface of the Earth.earthdistance — calculate great-circle distances › Cube-Based Earth Distances
lcalca ( ltree [, ltree [, ... ]] ) → ltree Computes longest common ancestor of paths (up to 8 arguments are supported). lca('1.2.3', '1.2.3.4.5.6') → 1.2ltree — hierarchical tree-like data type › Operators and Functions
lcmlcm
Mathematical Functions And Operators
13
Least common multiple (the smallest strictly positive number that is an integral multiple of both inputs); returns 0 if either input is zero; avai…Functions · Mathematical Functions And Operators
leadlead
Window Functions
10
returns value evaluated at the row that is offset rows after the current row within the partition; if there is no such row, instead return default (which must be of …Functions · Window Functions
LEASTLEAST
Conditional Expressions
10
The GREATEST and LEAST functions select the largest or smallest value from a list of any number of expressions. The expressions must all be convertible to a …Functions · Conditional Expressions
leftleft
String Functions And Operators
10
Return first n characters in the string. When n is negative, return all but last |n| characters.
left ( str text, n int ) → text Return first n charact…Functions · String Functions And Operators
More results
Find definitions in the PostgreSQL manuals, reference library, and extension catalogue.
pg17: choose a version ex: extensions only ↑↓ select ↵ open