Skip to content

sfdinesh/PostgreSQL

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

PostgreSQL

PostgreSQL Maintenance Tool

This shell script is designed to manage and monitor PostgreSQL databases. It includes 16 useful functions for database administration, monitoring, and optimization.

Installation

  1. Download zip file: https://github.com/rashidov9797/PostgreSQL/archive/refs/heads/main.zip

  2. Make it executable: chmod +x maintenance.sh

  3. Run the script: ./maintenance.sh

Features

  1. Version Info
  2. Schema List
  3. Active Sessions
  4. Lock List
  5. Dead Tuple List
  6. Tablespace Info
  7. Top 15 Queries
  8. Vacuum Info
  9. Commit & Hit Ratio
  10. Replication Delay
  11. Object Count by Schema
  12. Index Usage Statistics
  13. Unused Indexes
  14. Long Running Queries
  15. Vacuum Info
  16. Switch Database/User

image

Usage

When prompted with Select an option:, enter a number between 1 and 16.

Use 99 to exit the script.

Switch Database/User: Allows switching between databases and users.

Contact For questions or feedback, reach out at: [email protected]

About

PostgreSQL shell scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%