Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 3977E64FF8A for ; Fri, 18 Jul 2008 12:41:15 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 62766-06 for ; Fri, 18 Jul 2008 12:41:14 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by postgresql.org (Postfix) with ESMTP id B664E64FF77 for ; Fri, 18 Jul 2008 12:41:14 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.1/8.14.1) with ESMTP id m6IFfDYY065152 for ; Fri, 18 Jul 2008 12:41:13 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.1/8.14.1/Submit) id m6IFYHA4058295 for pgsql-performance@postgresql.org; Fri, 18 Jul 2008 12:34:17 -0300 (ADT) (envelope-from news) From: "Sabin Coanda" X-Newsgroups: pgsql.performance Subject: long transaction Date: Fri, 18 Jul 2008 18:34:20 +0300 Organization: Hub.Org Networking Services Lines: 17 Message-ID: X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Original To: pgsql-performance@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200807/151 X-Sequence-Number: 30751 Hi there, I have a script which includes 30000 called functions within a single transaction. At the beginning, the functions runs fast enough (about 60 ms each). In time, it begins to run slower and slower (at final about one per 2 seconds). I check the functions that runs slowly outside the script and they run normally (60 ms each). What is the problem ? TIA, Sabin