Skip to content

Commit

Permalink
V3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mmohali committed Sep 9, 2024
1 parent 5c062da commit 34f66ea
Show file tree
Hide file tree
Showing 3 changed files with 531 additions and 25 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,13 @@ Standby/Reader DB (Read Only)
5- Add DB/username/status/Connections count to the Connections Info section .
6- Add objects list and count in each schema to the schema info section .
7- Update the Toast Tables Mapping's sql to order the toast by the size and add note about toast OID wraparound.
```

# v3.1
```
1- The script should display the message "Report Generated Successfully" upon successful completion and relocate the report file name and location information to the end of the script..
2- Add a new section for Amazon Aurora PostgreSQL.
3- Add a new section for Invalid databases.
4- Implement a check for the pg_stat_statements extension. If the extension is not installed, the script should print the message "pg_stat_statements extension is not installed" in the report, instead of displaying the errors "ERROR: relation "pg_stat_statements_info" does not exist" or "ERROR: relation "pg_stat_statements" does not exist".
```
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ mohamed@mydevhost ~ %ls -lhrt /tmp/pg_colletcor_*


## Notes:
1- it is ok to see below errors while executing the pg_colletcor.sql script if you did not install pg_stat_statements extension
1- It is ok to see below errors while executing the pg_colletcor.sql script if you did not install pg_stat_statements extension

```
postgres=> \i pg_collector.sql
Expand All @@ -148,7 +148,7 @@ LINE 10: from pg_stat_statements
postgres=> \q
```

2- if the Database have Tens of thousands of tables , some queries can take longer time .
2- If the Database have Tens of thousands of tables , some queries can take longer time .
use statement_timeout to Abort any statement that takes more than the specified number of milliseconds.
please check below example .

Expand All @@ -164,6 +164,17 @@ postgres=>
```

3- It is acceptable to observe the following errors while executing the pg_collector.sql script on Amazon Aurora PostgreSQL if the Cluster Cache Manager is disabled.

```
postgres=> \i pg_collector.sql
Output format is html.
psql:/tmp/pg_collector.sql:2766: ERROR: Cluster Cache Manager is disabled
psql:/tmp/pg_collector.sql:2769: ERROR: Cluster Cache Manager is disabled
Report Generated Successfully
Report name and location: /tmp/pg_collector_postgres-2024-09-09_161216.html
```

# License

Expand Down
Loading

0 comments on commit 34f66ea

Please sign in to comment.