If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > PostgreSQL > Track Tables Filling Disk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-22-11, 11:59
CarlosinFL CarlosinFL is offline
Registered User
 
Join Date: Oct 2010
Location: Orlando, FL
Posts: 184
Question Track Tables Filling Disk

I have a Firewall called Untangle and it uses a PostgreSQL database that logs all Firewall events. Sadly the system crashed because the database was full. It wrote 12+ GB's in a matter of days so my only option was to run the following command:

Code:
DROP SCHEMA events cascade;
This dumps everything in the 'events' schema and clears GB's of disk space so I can operate the machine again. My question is how in pgsql can I locate or determine once the system is full again, which table(s) are filling up? I don't know my way enough around SQL or Postgres to determine how or which tables or uses the most space or filling up. Sadly I can just clear it with the command posted above.

Can anyone please guide or help me?
Reply With Quote
  #2 (permalink)  
Old 07-22-11, 12:02
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,408
Check out the PostgreSQL Wiki:

Disk Usage - PostgreSQL wiki
Reply With Quote
  #3 (permalink)  
Old 07-24-11, 20:40
someidiot someidiot is offline
Registered User
 
Join Date: Mar 2011
Posts: 27
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On