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.

How to Replace Null Values With Default Values in PostgreSQL

In PostgreSQL, the COALESCE() function and the IS NULL operator are used to find and replace the null values with some default values.

PostgreSQL INTERVAL Data Type With Examples

The INTERVAL keyword is used to define an interval in Postgres. This blog explained the usage of the INTERVAL data type in Postgres via suitable examples.

PostgreSQL Cheat Sheet - Basic Commands

This blog presented a cheat sheet that assists us in working with the Postgres databases, schemas, tables, and users/roles, efficiently.

PostgreSQL - ALTER TABLE Command With Examples

The ALTER TABLE command in PostgreSQL is used to alter the tables' structure, such as adding columns, renaming columns/tables, dropping columns, modifying constraints, etc.

How to List Schemas in PostgreSQL

In Postgres, the standard “information_schema”, a system catalog table named “pg_namespace”, and the “\dn” command is used to get the list of available schemas.

PostgreSQL - How to List All Available Tables?

PostgreSQL provides different built-in commands and queries to get the list of all the tables, such as the “\dt” command, “pg_tables”, “information_schema”, etc.

PostgreSQL IS NULL Operator/Condition

In Postgres, the IS NULL operator tests whether an expression/column contains a null value. It can be used with different statements, such as SELECT, UPDATE, etc.

PostgreSQL List Users, Databases, Schemas, Tables

Postgres provides different commands to find the list of users, databases, schemas, or tables, such as the “\du”, “\l”, “\dn”, and “\dt” shows the list of users, databases, schemas, and tables, respectively.

PostgreSQL TIMESTAMP: Timestamp Without Time Zone Data Type

The PostgreSQL “TIMESTAMP” or “TIMESTAMP WITHOUT TIME ZONE” data type stores a timestamp value without the time zone information.

PostgreSQL TIMESTAMPTZ: Timestamp With Time Zone Data Type

The PostgreSQL “TIMESTAMPTZ” or “TIMESTAMP With TIME ZONE” data type is used to store a timestamp value that includes the time zone information.