pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthew Lunnon <mlunnon@rwa-net.co.uk>
To: pgsql-performance@postgresql.org
Subject: Performance problems inside a stored procedure.
Date: Mon, 28 Jan 2008 12:02:26 +0000
Message-ID: <479DC452.8010400@rwa-net.co.uk> (raw)

Hi ms

I have a query which runs pretty quick ( 0.82ms) but when I put it 
inside a stored procedure  it takes 10 times as long (11.229ms).  Is 
this what you would expect and is there any way that I can get around 
this time delay?

postgres.conf changes.

shared_buffers = 500MB
work_mem = 10MB
maintenance_work_mem = 100MB
effective_cache_size = 2048MB
default_statistics_target = 1000

Thanks for any help.

Regards
Matthew.




view thread (6+ messages)  latest in thread

Message-ID: <479DC452.8010400@rwa-net.co.uk>
Permalink:  ../479DC452.8010400@rwa-net.co.uk/
Also on:    postgresql.org/message-id/479DC452.8010400@rwa-net.co.uk

 · 

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: mlunnon@rwa-net.co.uk
  Subject: Re: Performance problems inside a stored procedure.
  In-Reply-To: <479DC452.8010400@rwa-net.co.uk>

* 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