Re: Performance Tuning Large PL/PGSQL Stored Procedure

From: Richard Huxton <dev(at)archonet(dot)com>
To: Eliot Gable <egable+pgsql-performance(at)gmail(dot)com>
Cc: Merlin Moncure <mmoncure(at)gmail(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Performance Tuning Large PL/PGSQL Stored Procedure
Date: 2010-03-26 12:18:25
Message-ID: 4BACA611.8050607@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 26/03/10 03:56, Eliot Gable wrote:
>
> I really am chasing milliseconds here, and I appreciate all your feedback.
> You've given me a relatively large number of possible optimizations I can
> try out. I will definitely try out the libpqtypes. That sounds like a
> promising way to further cut down on execution time. I think most of my
> performance penalty is in transfering the results back to the C++
> application.

In addition to all of Merlin's good advice, if the client is on a
different machine to the server then try sticking wireshark or similar
onto the connection. That should make it pretty clear where the main
costs are in getting your data back.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Pierre C 2010-03-26 13:43:45 Re: Why Wal_buffer is 64KB
Previous Message Merlin Moncure 2010-03-26 12:06:49 Re: Performance Tuning Large PL/PGSQL Stored Procedure