# Build an Oracle AWR-style report for RDS/Aurora PostgreSQL

DevFeed: [Build an Oracle AWR-style report for RDS/Aurora PostgreSQL](<https://devfeed.tech/articles/build-an-oracle-awr-style-report-for-rds-aurora-postgresql-129581.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/database/build-an-oracle-awr-style-report-for-rds-aurora-postgresql/>)

Author: Tushar Rajput

Published: 2026-11-11T18:20:16Z

Content type: tutorial

Language: en

Sources: [AWS Database Blog](<https://devfeed.tech/sources/aws-database-blog.md>)

Topics: [RDS for PostgreSQL](<https://devfeed.tech/topics/rds-for-postgresql.md>), [Amazon Aurora](<https://devfeed.tech/topics/amazon-aurora.md>), [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [Insight for DBAs](<https://devfeed.tech/topics/insight-for-dbas.md>), [Amazon RDS](<https://devfeed.tech/topics/amazon-rds.md>), [Oracle Database](<https://devfeed.tech/topics/oracle-database.md>), [Amazon EventBridge](<https://devfeed.tech/topics/amazon-eventbridge.md>)

Tags: [advanced-300](<https://devfeed.tech/tags/advanced-300.md>), [amazon](<https://devfeed.tech/tags/amazon.md>), [amazon-aurora](<https://devfeed.tech/tags/amazon-aurora.md>), [amazon-rds](<https://devfeed.tech/tags/amazon-rds.md>), [based](<https://devfeed.tech/tags/based.md>), [build](<https://devfeed.tech/tags/build.md>), [built-in](<https://devfeed.tech/tags/built-in.md>), [cron](<https://devfeed.tech/tags/cron.md>), [database](<https://devfeed.tech/tags/database.md>), [event](<https://devfeed.tech/tags/event.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [ids](<https://devfeed.tech/tags/ids.md>), [load](<https://devfeed.tech/tags/load.md>), [oracle](<https://devfeed.tech/tags/oracle.md>), [performance](<https://devfeed.tech/tags/performance.md>), [pg-stat-statements](<https://devfeed.tech/tags/pg-stat-statements.md>), [post](<https://devfeed.tech/tags/post.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [rds](<https://devfeed.tech/tags/rds.md>), [rds-for-postgresql](<https://devfeed.tech/tags/rds-for-postgresql.md>), [report](<https://devfeed.tech/tags/report.md>), [style](<https://devfeed.tech/tags/style.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>)

## AI overview

The article presents `awr_lite`, a SQL-based AWR-style reporting solution for RDS and Aurora PostgreSQL built from `pg_stat_statements` and `pg_cron`. It stores snapshots every 15 minutes by default, samples active sessions every 10 seconds, and generates reports between snapshot IDs with load, activity, ranked SQL, segment, wait-event, and configuration sections. Installation requires PostgreSQL 14 or later, both extensions, an `rds_superuser` user, parameter changes and a reboot; objects and cron jobs must share the monitored database. Collection runs on the writer, and windows spanning statistics resets have unreliable deltas. Aurora lacks the WAL figures and restricts cron to one database per cluster; other databases need external scheduling. The sampler stores raw query text and client addresses, so the article advises reviewing exposure and report contents before sharing. CloudWatch Database Insights remains useful for continuous one-second graphical wait analysis.

## Source excerpt

PostgreSQL has no built-in Oracle AWR equivalent. This post shows how to build an AWR-style, snapshot-based performance report for Amazon RDS for PostgreSQL and Amazon Aurora PostgreSQL using pg_stat_statements and pg_cron, producing top-SQL, database-activity, wait-event, and load-profile reports between any two snapshot IDs, entirely in SQL.