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:

Postgres Length Functions With Practical Examples

Postgres offers various built-in length functions to calculate the length of a string, such as LENGTH(), BIT_LENGTH(), CHAR_LENGTH(), and BYTE_LENGTH().

How to Change a User to Superuser in PostgreSQL

In PostgreSQL, the ALTER USER and ALTER ROLE statements are used along with the SUPERUSER attribute to change an ordinary user to a superuser.

PostgreSQL DROP CONSTRAINT With Practical Examples

In PostgreSQL, Users must execute the DROP CONSTRAINT with the ALTER TABLE command to drop any particular constraint from a Postgres table.

Is NVL() Function Same as COALESCE() in PostgreSQL

PostgreSQL doesn’t support the NVL() function. In Postgres, a built-in function named COALESCE() is used as an alternative to the NVL() function.

How to Rename Tables in Postgres

To rename a particular table in PostgreSQL, use the RENAME TO clause in conjunction with the ALTER TABLE statement.

How to Create a Superuser in PostgreSQL

To create a superuser in PostgreSQL, users must use the CREATE ROLE or CREATE USER statement along with the SUPERUSER attribute.

SYSDATE Equivalent in PostgreSQL

In PostgreSQL, there is no SYSDATE function. However, PostgreSQL provides different functions that are equivalent to the SYSDATE function.

How to Uninstall PostgreSQL From Ubuntu

To uninstall Postgres from your Ubuntu operating system, open the terminal and run the “sudo apt remove postgresql postgresql-contrib” command.

How to Check Column Types in PostgreSQL

In PostgreSQL, the SELECT statement, information_schema, \d command, and pg_typeof() function are used to check the data type of a column.

How to Add or Drop NOT NULL Constraints in PostgreSQL

In PostgreSQL, a table column created with a NOT NULL constraint accepts only non-null values. It can be added when creating a new or altering an existing table.