11-17-2011 05:58 AM
Hello
How to compress FM database.
FM 4.2(7b) is used with Postgres, and the database is currently at 11.2 gigs.
Is it true that there is a vacuum command that can be run against SQL dbs.
Solved! Go to Solution.
11-18-2011 07:31 AM
Hello Chetan,
Here is how to compress PostgresSQL
Please check database size ($INSTALLDIR/dcm/db/data), size should be less than 3 GB. (On windows, right-mouse click on “data” folder and select “properties” menu item, a dialog will pop up and display folder size. On linux/solaris, just run “du –k $INSTALLDIR/dcm/db/data.” command)
Run the following command to reduce size:
1.Stop FMServer.
2. cd $POSTGRES_DIR/bin
3. run ./psql.exe –U db_username dcmdb (where dcmdb is the database name)
4.run this command at psql prompt.
#vacuum full analyze verbose;
#\q
5. You should see database size is reduced. (The above might take a while)
Change the following parameter inpostgresql.conf to slow down the growth. Here is the instruction:
1. stop postgresql services
2. edit $INSTALLDIR/db/data/postgresql.conf
Change following parameter:
checkpoint_segments = 6
max_fsm_pages = 532000
shared_buffers = 128MB
temp_buffers = 32MB
work_mem = 4MB
maintenance_work_mem = 16MB
max_fsm_pages = 532000
log_min_duration_statement = 200
3. Restart postgresql services. (remove first '#' if it is there)
11-17-2011 11:37 AM
Hello Chetan,
The vacum command is only support PostgresSQL
Thanks
11-17-2011 08:54 PM
Hello Vu Phan
Thank you for your reply,
Yes its a PostgresSQL database used in the environment
Please let me know the vaccum command
11-18-2011 07:31 AM
Hello Chetan,
Here is how to compress PostgresSQL
Please check database size ($INSTALLDIR/dcm/db/data), size should be less than 3 GB. (On windows, right-mouse click on “data” folder and select “properties” menu item, a dialog will pop up and display folder size. On linux/solaris, just run “du –k $INSTALLDIR/dcm/db/data.” command)
Run the following command to reduce size:
1.Stop FMServer.
2. cd $POSTGRES_DIR/bin
3. run ./psql.exe –U db_username dcmdb (where dcmdb is the database name)
4.run this command at psql prompt.
#vacuum full analyze verbose;
#\q
5. You should see database size is reduced. (The above might take a while)
Change the following parameter inpostgresql.conf to slow down the growth. Here is the instruction:
1. stop postgresql services
2. edit $INSTALLDIR/db/data/postgresql.conf
Change following parameter:
checkpoint_segments = 6
max_fsm_pages = 532000
shared_buffers = 128MB
temp_buffers = 32MB
work_mem = 4MB
maintenance_work_mem = 16MB
max_fsm_pages = 532000
log_min_duration_statement = 200
3. Restart postgresql services. (remove first '#' if it is there)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide