From: Kris Jurka <books@ejurka.com>
To: Altaf Malik <mmalik_altaf@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Function with raise notice statements taking too long
Date: Wed, 26 May 2010 15:21:33 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.1005261516270.15571@leary.csoft.net> (raw)
In-Reply-To: <34816.46946.qm@web110412.mail.gq1.yahoo.com>
References: <34816.46946.qm@web110412.mail.gq1.yahoo.com>
On Wed, 26 May 2010, Altaf Malik wrote:
> I have a plpgsql function with raise notice statements in a loop. When I
> call this function from JDBC, it takes almost 5 minutes to execute. However,
> if I invoke it through pgAdminIII, it gets executed in just 12 seconds. The
> code of the function is given below:
>
> [plpgsql function issuing a ton of RAISE NOTICE statements]
>
> Any clue why JDBC is performing too slow?
>
I've committed a fix to CVS to fix this performance issue. We were
only tracking the head of the SQLWarning list so adding a new warning
was O(N). Now we track the tail of the list as well, so adding new
warnings is quick.
Kris Jurka
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, mmalik_altaf@yahoo.com
Subject: Re: Function with raise notice statements taking too long
In-Reply-To: <alpine.BSO.2.00.1005261516270.15571@leary.csoft.net>
References: <34816.46946.qm@web110412.mail.gq1.yahoo.com> <alpine.BSO.2.00.1005261516270.15571@leary.csoft.net>
* 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