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_to_recordset() Function

In PostgreSQL, the user can convert the data stored in JSON objects (as key-value pairs) to a set of table rows. This operation can be performed by making use of the json_to_recordset() function. The json_to_recordset() function takes a JSON array, which can contain one or more JSON objects. The json_to_recordset() function converts those JSON objects into the set of table records/rows. Let’s start learning the json_to_recordset() function with examples.

PostgreSQL …

Understanding PostgreSQL jsonb_typeof() and json_typeof()

The PostgreSQL json_typeof() function and the jsonb_typeof() function are used to get the data types of the JSON and JSONB values, respectively, in the string format.

How to Use ASCII() Function in Postgres

In PostgreSQL, the ASCII() function is used to find the ASCII code for the given characters. This character can be a special character as well.

PostgreSQL degrees() Function

The degrees() function takes in the angle in radians with double precision data type, and converts and returns the angle value in degrees also having double precision data type.

PL/pgSQL Errors and Messages

Postgres offers several methods to display/show these errors to users and notify them through messages so that the program can be executed normally as expected and without any interruption.

PostgreSQL json_populate_recordset() Function

The json_populate_recordset() function converts the JSON array into a set of data rows. The JSON array can contain multiple JSON objects, which can be converted into arrays by using it.

How Does the pi() Function Work in PostgreSQL?

Use the pi() function in PostgreSQL to get the mathematical constant value of π. pi() can be used in mathematical expressions to use the value of π.

PL/pgSQL Block Structure

PL/pgSQL supports block structure. The block has two sections; a declaration and a body. Sub-block structure is also supported by PL/pgSQL.

The Risks of Not Having a Multi-Region PostgreSQL Cluster

Introduction:

In today's fast-paced digital landscape, data is at the heart of every organization's success. The PostgreSQL database system is a robust and popular choice for managing critical data, but ensuring database availability, scalability, and resilience is crucial. One strategy that can significantly mitigate risks associated with database availability is adopting a multi-region architecture. SaaS applications in particular are often implemented as single-region applications, and can benefit greatly from a multi-region approach.  In this blog post, we'll delve deep into the risks of not having a multi-region strategy for your PostgreSQL database system and explore why it's a game-changer in today's data-centric world.

PostgreSQL Full-Text Search

In PostgreSQL, the full-text search returns all the possible results for the searched terms and their variants as well which was a drawback of the simple search approach.