pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Neil Conway <neilc@samurai.com>
To: David Griffiths <dgriffiths@boats.com>
Cc: PostgreSQL Performance <pgsql-performance@postgresql.org>
Subject: Re: Any issues with my tuning...
Date: Tue, 14 Oct 2003 15:37:04 -0400
Message-ID: <1066160224.28992.3.camel@tokyo> (raw)
In-Reply-To: <039801c391c2$4b83d600$6501a8c0@griffiths2>
References: <039801c391c2$4b83d600$6501a8c0@griffiths2>

On Mon, 2003-10-13 at 15:43, David Griffiths wrote: 
> Here are part of the contents of my sysctl.conf file (note that I've
> played with values as low as 600000 with no difference)
> kernel.shmmax=1400000000
> kernel.shmall=1400000000

This is only a system-wide limit -- it either allows the shared memory
allocation to proceed, or it does not. Changing it will have no other
effect on the performance of PostgreSQL.

>                ->  Index Scan using comm_ent_usr_acc_id_i on
> commercial_entity ce  (cost=0.00..4787.69 rows=78834 width=24) (actual
> time=0.02..55.64 rows=7991 loops=1)

Interesting that we get this row count estimate so completely wrong
(although it may or may not have anything to do with the actual
performance problem you're running into). Have you run ANALYZE on this
table recently? If so, does increasing this column's statistics target
(using ALTER TABLE ... ALTER COLUMN ... SET STATISTICS) improve the row
count estimate?

-Neil





view thread (4+ messages)

Message-ID: <1066160224.28992.3.camel@tokyo>
Permalink:  ../1066160224.28992.3.camel@tokyo/
Also on:    postgresql.org/message-id/1066160224.28992.3.camel@tokyo

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: neilc@samurai.com, dgriffiths@boats.com
  Subject: Re: Any issues with my tuning...
  In-Reply-To: <1066160224.28992.3.camel@tokyo>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox