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.

Array Operators in PostgreSQL

Array operators are used to perform different operations on arrays. These operators are used for comparison, containment, overlapping, and concatenation.

How to Find Factorial of a Number in PostgreSQL

To find the factorial of a number in PostgreSQL, we use the FACTORIAL() function that takes a number as an input and returns the value of its factorial.

ENUM_RANGE() Function in PostgreSQL

ENUM_RANGE() is a built-in function in Postgres to manipulate the data having Enum data type. This function returns an array containing all the enumerators for the enum type in the same order as defined.

What is an Enum in PostgreSQL?

Enums are useful data types in Postgres that make it much easier to query, sort, and maintain the data and eventually improve data integrity.

How to Use Postgres Docker Official Image

To use Postgres image in Docker, run Postgres container using this image. For Docker compose file, define services in compose file and run Postgres container.

How to Use the LAST_VALUE() Function in PostgreSQL?

LAST_VALUE() is one of the Window functions in Postgres that retrieves the last value in the sorted partition/window of a result set.

PostgreSQL JSONB_SET() Function

JSONB_SET() accepts a new value, a JSONB value, and a path as arguments, and inserts the new value at the specified path within the targeted JSONB value.

How to Use the FIRST_VALUE() Function in PostgreSQL

FIRST_VALUE() is one of the Window functions in Postgres that retrieves the first value in the sorted partition of a result set.

How to Use in JSONB_ARRAY_LENGTH() Function in PostgreSQL

In PostgreSQL, a built-in function named “JSONB_ARRAY_LENGTH()” is used to determine the length of a JSONB array.

How to Get the Type of a JSON Value in PostgreSQL

JSON_TYPEOF() is a built-in JSON function that accepts any valid SQL value and retrieves its data type in text format.