From: | zhang zhengquan <zhang(dot)zhengquan(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | how to see how the data is structured in postgreqsql |
Date: | 2009-03-31 15:58:11 |
Message-ID: | 128a87f00903310858k413b13b9ke20ac6691cd3a280@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi, There,
I am a new sysadmin and I am new to postgresql and database. I have got
a very old gentoo server that has been running postgresql db for years
and now the log files alone are about 10 Giga bytes.
we run apache server and we have a ruby script that parse the
access_log of apache and put the access data in to this db. the script
runs daily in a cron job.
Now the problem is, since we did not rotate the access_log generated by
apache , access_log is getting so big that each day the parsing job of
the log file and data entry in to the db takes hours to finish and it
eats a lot of cpu resources and puts great pressure on the old server.
I would like to know how the my log data is organized in the database
and then I will see if I can do something to optimize the data entry
into the db.
Any pointers is greatly appreciated.
Zhengquan
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Marlowe | 2009-03-31 16:00:11 | Re: Space for pg_dump |
Previous Message | Bradley Russell | 2009-03-31 15:57:51 | non starting server |