Postgres and Open Source Experts

24x7x365 since 1997

Education

Professional Postgres and Open Source support

Command Prompt, Inc., is the oldest Postgres Company in North America and one of the oldest Open Source firms still operating today. We serve our clients with best in class expertise and professionalism. You can read more about support and services here:


You have landed at the largest single source of Postgres education blogs in the world. At Command Prompt, we believe deeply that the education of the community is critical to the continued success of Postgres and related technologies. We hope you find content you are looking for and don't hesitate to Contact us today for all your Postgres and Open Source consulting and support needs.

PostgreSQL json_each() Function

The json_each() function converts the top-level JSON object into the expanded key-value pairs. It accepts a JSON object as an input and converts and returns the expanded key-value pairs.

PostgreSQL json_object_keys() Function

The JSON object is provided to the json_object_keys() function as an argument and it returns a column containing all the keys present in that particular JSON object.

PostgreSQL quote_literal() Function

The PostgreSQL quote_literal() function takes in a string and returns the same string enclosed with the single quotations.

PostgreSQL json_strip_nulls() Function

In PostgreSQL, the json_strip_nulls() function removes/eliminates the fields in the JSON object that have NULL values.

How to Use jsonb_build_object() Function in PostgreSQL

In PostgreSQL, the jsonb_build_object() function takes a heterogeneous list of parameters and converts them into JSON objects.

PostgreSQL quote_nullable() Function

The quote_nullable() function in PostgreSQL is used to enclose the string within single quotations. The string is provided to the function as an argument and it returns the single quote enclosed string.

PostgreSQL to_hex() Function

Postgres offers the to_hex() function to convert a number/numeric value into its hexadecimal representation. It takes an integer as an argument and returns a string data type

PostgreSQL json_object() Function

The PostgreSQL json_object() function builds a JSON object from the provided TEXT array or arrays. It takes a text array or two text arrays.

PostgreSQL json_each_text() Function

The PostgreSQL json_each_text() function converts the JSON object into its small decomposed key-value pairs.

PostgreSQL json_to_record() Function

The Postgres json_to_record() function takes a top-level JSON object as input, converts it into a table record/row, and returns it.