Postgres and Open Source Experts

Anytime. Anywhere. 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.

How to Use TIMETZ (Time With Time Zone) Data Type in PostgreSQL

The TIMETZ data type stores the time information with the timezone. This data type is used to store the data where the timezone is considered to be important.

How to Create a User-Defined Data Type in PostgreSQL

To Create a user-defined data type in PostgreSQL, users can use either the CREATE DOMAIN statement or the CREATE TYPE statement.

What Does json_extract_path() Function Do in PostgreSQL

The json_extract_path() function is a JSON function that is used to extract the values from the JSON data. The path of the values that are to be fetched is specified as an argument in the function.

How to Use WHERE Clause With Arrays in PostgreSQL?

Arrays are among the most commonly used data types in Postgres. In Postgres, the WHERE clause is used with arrays to get and update the records as per users requirements

How to Use SUM() Function with Group By Clause in PostgreSQL

The GROUP BY clause and SUM() function are used together when we want to calculate the sum of values based on the specific groups.

How to Create an Extension in PostgreSQL

In PostgreSQL, the extensions can be created by using the CREATE EXTENSION statement which is followed by the name of the extension.

Understanding Postgres Log Functions - ln(), log(), log10()

In PostgreSQL, the log functions are used to find the logarithm of a particular number(provided in the function as a parameter). These functions include: log(), ln(), and log10().

How to Drop an Extension in PostgreSQL

In PostgreSQL, the extensions can be dropped by using the DROP EXTENSION statement which is followed by the name of the extension.

How to Switch User in PostgreSQL

We can switch a user in PostgreSQL by simply executing the SET ROLE command. But the point to be noted is that we can only switch the user if it already exists.

How to Use Generated Columns in PostgreSQL

The generated columns do not have a fixed value; rather this value is automatically computed by the expression that is determined at the time of column definition.