Experts in Postgres and Open Source Infrastructure

24x7, 365 Enterprise services 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 Calculate Percentiles in PostgreSQL

PERCENT_CONT and PERCENT_DISC are analytic functions that are used to calculate the percentile/median in the PostgreSQL database.

How to Continue a Loop in PostgreSQL

In PostgreSQL, the CONTINUE statement is used to skip iterations of the loop and its syntax included the label of the loop and conditions.

PL/pgSQL Exit Statement: How to Terminate a Loop

Terminating the loop before its actual ending point or condition can be done using the “Exit” statement in the PostgreSQL query.

How to Use While Loop in PostgreSQL

While loop is used in PostgreSQL to apply multiple iterations on the query by checking the condition for each iteration before executing the body of the loop.

How to Use For Loop in PostgreSQL

The for loop in Postgres is used to iterate/traverse over a specific range or a result set. You can use and customize it according to your requirements.

How to Use PERCENT_RANK in PostgreSQL

In PostgreSQL, the PERCENT_RANK function can be used with PARTITION BY and ORDER BY clauses using ascending and descending order to get a rank for each row.

How to Use PostgreSQL CUBE

The CUBE clause in PostgreSQL can be used under the GROUP BY clause to apply an aggregate function on multilevel columns to generate reports.

How to Use PARTITION BY in PostgreSQL

The PARTITION BY statement is used to create partitions in the tables to keep them efficient by dividing them into smaller tables for quick fetching of data.

How to Import Data into PostgreSQL on AWS RDS Database

Create a PostgreSQL database on the Amazon cloud platform using RDS service and connect to it using its endpoint and import data in it from the local directory.

How to Migrate Local PostgreSQL Database to AWS RDS

Create a backup of the local PostgreSQL database and connect to the AWS RDS database. After that, simply restore the backup file to the RDS database.