Re: [PERFORM] PostgreSQL on ZFS: performance tuning

2016-07-28 Thread trafdev
> - from what I can see, Postgres uses memory too carefully. I would like > somehow to force it to keep accessed data in memory as long as possible. > Instead I often see that even frequently accessed data is pushed out of > memory cache for no apparent reasons. > This is probably a consequence o

Re: [PERFORM] PostgreSQL on ZFS: performance tuning

2016-07-28 Thread Tomas Vondra
On 07/29/2016 08:04 AM, trafdev wrote: Hi. I have an OLAP-oriented DB (light occasional bulk writes and heavy aggregated selects over large periods of data) based on Postgres 9.5.3. Server is a FreeBSD 10.3 with 64GB of RAM and 2x500GB SSD (root on ZFS, mirror). The largest table is 13GB (wi

[PERFORM] PostgreSQL on ZFS: performance tuning

2016-07-28 Thread trafdev
Hi. I have an OLAP-oriented DB (light occasional bulk writes and heavy aggregated selects over large periods of data) based on Postgres 9.5.3. Server is a FreeBSD 10.3 with 64GB of RAM and 2x500GB SSD (root on ZFS, mirror). The largest table is 13GB (with a 4GB index on it), other tables ar

Re: [PERFORM] Very slow query (3-4mn) on a table with 25millions rows

2016-07-28 Thread Abadie Lana
Sorry for the delay Still no use of the index create table func_var_name_for_tpl_15 as select e.name from functionalvariables e, usertemplatevariable ut where e.usertemplatevar_id=ut.id and ut.usertempl_id=15; SELECT 48 =# analyze func_var_name_for_tpl_15; ANALYZE =# explain analyze with filtered