Skip site navigation (1) Skip section navigation (2)

Re: how much postgres can scale up?

From: "Anibal David Acosta" <aa(at)devshock(dot)com>
To: "'Craig Ringer'" <craig(at)postnewspapers(dot)com(dot)au>
Cc: <tv(at)fuzzy(dot)cz>,<pgsql-performance(at)postgresql(dot)org>
Subject: Re: how much postgres can scale up?
Date: 2011-06-10 13:19:22
Message-ID: 002201cc2771$05531360$0ff93a20$ (view raw, whole thread or download thread mbox)
Lists: pgsql-performance

Thanks I'll buy and read that book :)


-----Mensaje original-----
De: Craig Ringer [mailto:craig(at)postnewspapers(dot)com(dot)au] 
Enviado el: viernes, 10 de junio de 2011 09:13 a.m.
Para: Anibal David Acosta
CC: tv(at)fuzzy(dot)cz; pgsql-performance(at)postgresql(dot)org
Asunto: Re: [PERFORM] how much postgres can scale up?

On 06/10/2011 08:56 PM, Anibal David Acosta wrote:
> The version is Postgres 9.0
> Yes, I setup the postgres.conf according to instructions in the 
> Cool, I will check this
> Looks like great starting point to find bottleneck
> But so, Is possible in excellent conditions that two connections duplicate the quantity of transactions per second?

For two connections, if you have most of the data cached in RAM or you have lots of fast disks, then sure. For that matter, if they're synchronized scans of the same table then the second transaction might perform even faster than the first one!

There are increasing overheads with transaction synchronization, etc with number of connections, and they'll usually land up contending for system resources like RAM (for disk cache, work_mem, etc), disk I/O, and CPU time. So you won't generally get linear scaling with number of connections.

Greg Smith has done some excellent and detailed work on this. I highly recommend reading his writing, and you should consider buying his recent book "PostgreSQL 9.0 High Performance".

See also:

There have been lots of postgresql scaling benchmarks done over time, too. You'll find a lot of information if you look around the wiki and Google.

Craig Ringer

In response to


pgsql-performance by date

Next:From: Pierre CDate: 2011-06-10 13:52:03
Subject: Re: how much postgres can scale up?
Previous:From: Craig RingerDate: 2011-06-10 13:13:06
Subject: Re: how much postgres can scale up?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group