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 CUME_DIST Function in PostgreSQL

In PostgreSQL, the CUME_DIST() function retrieves the cumulative distribution of a value for the given set of values.

What Does ENUM_LAST() Function Do in PostgreSQL?

The ENUM_LAST() is a built-in function in Postgres that retrieves the last value of the enum specified by the parameter.

How to Use ENUM_FIRST() Function in PostgreSQL

The ENUM_FIRST() is a built-in function in Postgres that retrieves the first value of the enum specified by the parameter.

How Does the JSON_BUILD_OBJECT() Function Work in PostgreSQL

The JSON_BUILD_OBJECT() function is used to create and retrieve a JSON object from a variadic parameter list of key-value pairs.

How to Use JSON_BUILD_ARRAY() Function in PostgreSQL

The JSON_BUILD_ARRAY() is a built-in JSON function that creates and retrieves a JSON array of different types from a variadic parameter list.

How to Use the ARRAY_TO_JSON() Function in PostgreSQL

The array_to_json() is a built-in JSON function that accepts a SQL array as an argument and converts it into a JSON array.

How to Exit Postgres' Command Line Utility (SQL Shell)

In PostgreSQL, various methods are used to exit the Postgres command line utility, such as the “\q” or “\quit” commands, and “CTRL + C”, “CTRL + D”, or “CTRL + Z” shortcut keys.

How to Include Multiple Postgres Databases in a Single Docker Container

To include multiple PostgreSQL databases in Docker container, continuously run the “CREATE DATABASE <database-name>” command with different database names.

How to Do Table Inheritance in PostgreSQL

In PostgreSQL, the “table inheritance” allows us to create a hierarchy of tables, where one table(child) can inherit the structure and properties of another (parent) table.

How to Add or Remove a UNIQUE Constraint on Multiple Columns of a Postgres Table

In PostgreSQL, the “UNIQUE” keyword is used with the CREATE TABLE or ALTER TABLE commands to add a unique constraint on single/multiple columns of a new or an already existing Postgres table.