Comments are available to members only. Sign up or Log in to view these comments.
Main Topics
Browse All TopicsI have installed the latest PostgreSQL native Windows beta (8.0.0-beta4 using the Windows MSI installer) on a Windows XP Pro SP2 system. I accepted all of the installation defaults, as far as I remember. It is running successfully (I can store from my app, "pgAdmin III" shows the results, I can query using "psql") and my application that stores data via ODBC (psqlodbc.dll, version 8.0.0.2) is working. But it is VERY slow to store. A single INSERT takes an elapsed time of one second according to the query log, although the actiual query time is only 10 milliseconds (typically). The tables being inserted into have no indexes. The disk drive buzzes without stop as many INSERT's are done. It does not matter whether they are Prepared or Direct INSERT's. I have increased most of the configuration parameters in file "postgresql.conf" that relate to memory and buffer sizes to large numbers (see below), but nothing changes. I have been sure to re-start the server each time so that the new conf parameters should take effect. My app is explicitly beginning and committing transactions, one transaction over many INSERT's. The size of "C:\Program Files\PostgreSQL\8.0.0-bet
Why is it so slow? Why all the disk activity? How can I speed it up? I am not asking for real performance tuning. I just want to fix what is "broken".
customized Parameters:
shared_buffers = 8000
work_mem = 10240
bgwriter_percent = 0
bgwriter_maxpages = 0
fsync = false
wal_buffers = 1000
checkpoint_timeout = 3600
checkpoint_warning = 0
log_min_error_statement = debug
log_min_duration_statement
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: earthman2Posted on 2004-11-24 at 04:21:21ID: 12664446
Comments are available to members only. Sign up or Log in to view these comments.