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 Full-Text Search

In PostgreSQL, the full-text search returns all the possible results for the searched terms and their variants as well which was a drawback of the simple search approach.

SELECT if String Contains a Substring Match in PostgreSQL

SELECT if String Contains a Substring Match in PostgreSQL can be accomplished using different methods, such as LIKE and ILIKE, position(), substring(), etc.

UNION Vs INTERSECT Vs EXCEPT: What's the Difference

In Postgres, the UNION, INTERSECT, and EXCEPT are the set operators that are applied on at least two tables to get a specific combined result.

What Does the UPDATE ... FROM Statement Do in PostgreSQL

In PostgreSQL, the UPDATE FROM statement is used to update the data/row of any table according to the data of another table.

How to Comment Characters in psql

Commenting on the special character in psql may be a problem sometimes. To avoid errors we can use different methods, such as \echo, \warn, “\\” separator, etc.

How to Fix “window function nth_value requires an OVER clause” in Postgres

In PostgreSQL, the error “window function nth_value requires an OVER clause” occurs when the OVER clause is not specified in the query.

How to Drop a Custom/User-Defined Type in PostgreSQL

In PostgreSQL, an already existing user-defined data type that is no longer in our use can be dropped by using the DROP TYPE IF EXISTS statement.

How to Use DISTINCT ON Expression in Postgres

In PostgreSQL, the DISTINCT ON clause works similarly to the DISTINCT clause as it returns the unique records of data after discarding the duplicate records.

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.