Experts in Postgres and Open Source Infrastructure

24x7, 365 Enterprise services since 1997


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 Aggregate Functions With Practical Examples

To perform calculations on a set of rows, the aggregate functions are used. These functions perform calculations on the table rows and return only a single row.

PostgreSQL Data Types Explained

PostgreSQL provides a wide range of data types, such as textual, numeric, and temporal, for efficient data storage and manipulation.

How to Create Database Objects in PostgreSQL Using CREATE Command

A database object is an entity defined in a database and is used to store or reference data. In Postgres, database objects are created using the CREATE command.

How to Install and Setup PostgreSQL on Debian 12

Use the “sudo apt install postgresql postgresql-contrib” command to install PostgreSQL from Debian 12’s default repository.

How to Use ARRAY_UPPER() Function in PostgreSQL

The ARRAY_UPPER() function in PostgreSQL returns the upper bound of the array dimension or the highest index of an array.

How to Kill a Process ID in PostgreSQL

To kill a process in Postgres, first, find the “pid” for all the processes, and then run the “pg_cancel_backend(pid)” and “pg_terminate_backend(pid)” commands.

How to Describe Database Objects in PostgreSQL From psql

In Postgres, the meta-commands like “\d”, “\dt”, “\dv”, “\ds”, and “\df” are used to describe relations, tables, views, sequences, and functions, respectively.

How to Use jsonb_build_array() function in PostgreSQL

In PostgreSQL, the jsonb_build_array() function takes the list of heterogeneous parameters and builds the JSONB array from them.

PostgreSQL quote_ident() Function

While writing the PostgreSQL queries, we sometimes need to use the string as identifiers. For this purpose, the string needs to be converted into the quantified identifier or properly quoted in the double quotation mark. In PostgreSQL, the quote_ident() function performs this task. The quote_ident() function gets a string as an argument and returns the same string properly double-quoted that can be used as a qualified identifier.

Let’s learn more …

PostgreSQL min_scale() Function

The min_scale() function in Postgres returns the minimum precision or minimum number of decimal places that are necessary to accurately/completely express the number.