X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 555E99DC825 for ; Mon, 13 Feb 2006 20:57:11 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 68141-07 for ; Mon, 13 Feb 2006 20:57:14 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 278689DC821 for ; Mon, 13 Feb 2006 20:57:08 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id k1E0v7vc007001; Mon, 13 Feb 2006 19:57:07 -0500 (EST) To: "Adnan DURSUN" cc: pgsql-performance@postgresql.org, mike@fuhr.org Subject: Re: SQL Function Performance In-reply-to: References: Comments: In-reply-to "Adnan DURSUN" message dated "Mon, 13 Feb 2006 22:23:52 +0200" Date: Mon, 13 Feb 2006 19:57:07 -0500 Message-ID: <7000.1139878627@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.109 required=5 tests=[AWL=0.109] X-Spam-Score: 0.109 X-Spam-Level: X-Archive-Number: 200602/148 X-Sequence-Number: 17134 "Adnan DURSUN" 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