From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Sabin Coanda <sabin.coandaSPAMPROTECTION@deuromedia.ro>
To: pgsql-performance@postgresql.org
Subject: Re: How check execution plan of a function
Date: Mon, 12 Apr 2010 08:50:04 -0500
Message-ID: <4BC2DEBC020000250003071A@gw.wicourts.gov> (raw)
In-Reply-To: <hpn9i7$1dku$1@news.hub.org>
References: <hphv0u$18f$1@news.hub.org>
<4BBDF9C9.9050504@squeakycode.net>
<hpn9i7$1dku$1@news.hub.org>
"Sabin Coanda" <sabin.coandaSPAMPROTECTION@deuromedia.ro> wrote:
> I have just a function returning a cursor based on a single coplex
> query. When I check the execution plan of that query it takes
> about 3 seconds. Just when it is used inside the function it
> freezes.
>
> This is the problem, and this is the reason I cannot imagine what
> is happen.
>
> Also I tried to recreate the function as it was before when it run
> in 3 seconds, but I cannot make it to run properly now.
You've given three somewhat confusing and apparently contradictory
descriptions of the problem or problems you've had with slow queries
-- all on one thread. You would probably have better luck if you
start with one particular issue and provided more of the information
suggested here:
http://wiki.postgresql.org/wiki/SlowQueryQuestions
If we can solve one problem, perhaps the resolution to the others
will become apparent; otherwise follow up with the next.
-Kevin
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-performance@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, sabin.coandaSPAMPROTECTION@deuromedia.ro
Subject: Re: How check execution plan of a function
In-Reply-To: <4BC2DEBC020000250003071A@gw.wicourts.gov>
References: <hphv0u$18f$1@news.hub.org> <4BBDF9C9.9050504@squeakycode.net> <hpn9i7$1dku$1@news.hub.org> <4BC2DEBC020000250003071A@gw.wicourts.gov>
* 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