Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

How can I configure postgresql to use multiple cores in a single machine , is it automatically uses it ?

share|improve this question
5  
wiki.postgresql.org/wiki/… –  dezso Jun 26 '12 at 11:19
    
You could do some tests to see it working. –  Frank Heikens Jun 27 '12 at 5:16
add comment

2 Answers 2

PostgreSQL automatically uses multiple cores to support multiple database connections, if you have multiple cores. No further configuration is necessary.

share|improve this answer
add comment

Postgres allocates one process per client, and, generally speaking you will only see that process go to 100% of 1 of your cores. To increase throughput you need to use more clients/connections.

http://www.postgresql.org/docs/8.2/static/connect-estab.html

share|improve this answer
1  
good point, apart from 8.2 being a bit outdated. –  dezso Jul 12 '12 at 15:41
    
Oh, I didn't even see that was the version that came up in Google. The text is the same even in the current 9.3 dev version: postgresql.org/docs/devel/static/connect-estab.html –  ers81239 Jul 12 '12 at 15:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.