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 Deallocate a Prepared Statement in PostgreSQL

Use the DEALLOCATE command followed by the name of the prepared statement to explicitly Deallocate a Prepared Statement in PostgreSQL.

How to Get List of Running Queries in PostgreSQL

PostgreSQL provides a system view named pg_stat_activity that retrieves information about the currently running queries and active sessions on the database server.

How the PREPARE Statement Works in PostgreSQL

In PostgreSQL, the PREPARE statement creates a prepared statement that can be utilized repeatedly. It allows us to execute the command with different values.

How to Install and Set Up Docker PostgreSQL Environment

To install the Docker PostgreSQL environment, install Docker on the system from the official link. After that, pull the Postgres image from Docker Hub using the “docker pull postgres”.

How to Delete Data From PostgreSQL Tables Using Python

To delete data from PostgreSQL tables using Python, execute the delete query with the help of the “execute()” function.

How to Call a User-defined Function in PostgreSQL

To call/invoke a user-defined function in PostgreSQL, Positional Notation, Named Notation, or Mixed Notation can be used.

Creating a Repeating Sequence in PostgreSQL: A Comprehensive Guide

To create a repeating sequence in Postgres, the CREATE SEQUENCE command can be executed with the “CYCLE” option enabled.

What is the Equivalent of Java Long in PostgreSQL

In PostgreSQL, the "BIGINT" data type is used to store extremely large positive or negative numbers and can serve as an alternative to Java’s Long data type.

How to List User-Defined Functions in PostgreSQL

In PostgreSQL, the “\df” mata-command, “information_schema.routines” View, and the “pg_proc” Catalog is used to get the list of user-defined functions.

CREATE FUNCTION Statement in PostgreSQL

The CREATE FUNCTION statement allows us to create a user-defined function by specifying its name, parameters, return type, and the language to be implemented.