Re: PostgreSQL memory usage

2019-10-17 Thread Tom Lane
Alexander Pyhalov writes: > However, one table has 2250 partitions and I've seen several selects to this > table (based on the primary key of individual partitions) with a huge IN () > list (about 500 keys). Don't expect this to be efficient, but unsure that > these queries caused such memory

RE: PostgreSQL memory usage

2019-10-17 Thread Alexander Pyhalov
авлено: 17 октября 2019 г. 14:09 Кому: Alexander Pyhalov; pgsql-general@lists.postgresql.org Тема: Re: PostgreSQL memory usage Alexander Pyhalov wrote: > After looking at my DBMS server for some time I've understood that I don't > understand what was going on... > > A server

Re: PostgreSQL memory usage

2019-10-17 Thread Laurenz Albe
Alexander Pyhalov wrote: > After looking at my DBMS server for some time I've understood that I don't > understand what was going on... > > A server has 48 GB RAM. shared_buffers is set to 12GB, work_mem - to 32MB, > pgbouncer > in transaction mode is used to connect pool (pool size 80) to Postg

Re: PostgreSQL memory usage

2019-10-16 Thread Luca Ferrari
On Wed, Oct 16, 2019 at 6:30 PM Alexander Pyhalov wrote: > I see that at some point several postgresql backends start consuming about 16 > GB RAM. If we account for shared_buffers, it meens 4 GB RAM for private > backend memory. How can we achieve such numbers? I don't see any long-running > (

PostgreSQL memory usage

2019-10-16 Thread Alexander Pyhalov
Hello. After looking at my DBMS server for some time I've understood that I don't understand what was going on... A server has 48 GB RAM. shared_buffers is set to 12GB, work_mem - to 32MB, pgbouncer in transaction mode is used to connect pool (pool size 80) to PostgreSQL 10.5 server. I see t