Skip to content

Commit

Permalink
[postgresql] Add disk usage summary for psql home
Browse files Browse the repository at this point in the history
Adds collection of 'du -sh' for the postgres home directory.

Related: #1525

Signed-off-by: Jake Hunsaker <[email protected]>
Signed-off-by: Bryn M. Reeves <[email protected]>
  • Loading branch information
TurboTurtle authored and bmr-cymru committed Mar 21, 2019
1 parent d698677 commit 6f03b85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sos/plugins/postgresql.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def do_pg_dump(self, scl=None, filename="pgdump.tar"):

def setup(self):
self.do_pg_dump()
self.add_cmd_output("du -sh %s" % self.get_option('pghome'))


class RedHatPostgreSQL(PostgreSQL, SCLPlugin):
Expand Down

0 comments on commit 6f03b85

Please sign in to comment.