pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adnan DURSUN <a_dursun@hotmail.com>
Cc: pgsql-performance@postgresql.org
Cc: mike@fuhr.org
Subject: Re: SQL Function Performance
Date: Mon, 13 Feb 2006 19:57:07 -0500
Message-ID: <7000.1139878627@sss.pgh.pa.us> (raw)
In-Reply-To: <BAY106-DAV21E25D8CB477D5CA14A18FA070@phx.gbl>
References: <BAY106-DAV21E25D8CB477D5CA14A18FA070@phx.gbl>

"Adnan DURSUN" <a_dursun@hotmail.com> writes:
>>>> EXPLAIN ANALYZE EXECUTE stmt (...);

>    Here is the EXPLAIN ANALYZE output for prepared statement :

This is exactly the same as the other plan --- you did not parameterize
the query.  To see what's going on, you need to insert PREPARE
parameters in the places where the function uses plpgsql variables.

			regards, tom lane



view thread (16+ messages)  latest in thread

Message-ID: <7000.1139878627@sss.pgh.pa.us>
Permalink:  ../7000.1139878627@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7000.1139878627@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, a_dursun@hotmail.com, mike@fuhr.org
  Subject: Re: SQL Function Performance
  In-Reply-To: <7000.1139878627@sss.pgh.pa.us>

* 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