Re: Possible to improve query plan?

From: Jeremy Palmer <JPalmer(at)linz(dot)govt(dot)nz>
To: "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Possible to improve query plan?
Date: 2011-01-17 20:52:18
Message-ID: 666FB8D75E95AE42965A0E76A5E5337E06D2C68681@prdlsmmsg01.ad.linz.govt.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

It fits a Data Warehousing type application.

Apart from work_mem, my other parameters are pretty close to these numbers. I had the work_mem down a little because a noticed some clients were getting out of memory errors with large queries which involved lots of sorting.

Thanks
Jeremy

-----Original Message-----
From: Ing. Marcos Ortiz Valmaseda [mailto:mlortiz(at)uci(dot)cu]
Sent: Tuesday, 18 January 2011 2:38 a.m.
To: Jeremy Palmer
Cc: pgsql-performance(at)postgresql(dot)org; Andy Colson
Subject: Re: [PERFORM] Possible to improve query plan?

Which is the type of your application? You can see it on the Performance Whackamole Presentation from Josh Berkus on the
PgCon 2009:
- Web application
- Online Transaction Processing (OLTP)
- Data WareHousing (DW)

And based on the type of your application, you can configure the postgresql.conf to gain a better performance of your PostgreSQL server.
PostgreSQL postgresql.conf baseline:
shared_buffers = 25% RAM
work_mem = 512K[W] 2 MB[O] 128 MB[D]
- but no more that RAM/no_connections
maintenance_work_mem = 1/16 RAM
checkpoint_segments = 8 [W], 16-64 [O], [D]
wal_buffer = 1 MB [W], 8 MB [O], [D]
effective_cache_size = 2/3 RAM

Regards

Ing. Marcos Luís Ortíz Valmaseda
Linux User # 418229 && PostgreSQL DBA
Centro de Tecnologías Gestión de Datos (DATEC)
http://postgresql.uci.cu
http://www.postgresql.org
http://it.toolbox.com/blogs/sql-apprentice

______________________________________________________________________________________________________

This message contains information, which is confidential and may be subject to legal privilege.
If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message.
If you have received this message in error, please notify us immediately (Phone 0800 665 463 or info(at)linz(dot)govt(dot)nz) and destroy the original message.
LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ.

Thank you.
______________________________________________________________________________________________________

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Jeremy Palmer 2011-01-17 21:01:17 Re: Possible to improve query plan?
Previous Message Kevin Grittner 2011-01-17 20:51:24 Re: Bad plan when join on function