Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 780312E004F for ; Mon, 7 Apr 2008 09:36:19 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 82589-10 for ; Mon, 7 Apr 2008 09:36:17 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.191]) by developer.postgresql.org (Postfix) with ESMTP id B1C3F2E0048 for ; Mon, 7 Apr 2008 09:36:16 -0300 (ADT) Received: by ti-out-0910.google.com with SMTP id y6so557702tia.5 for ; Mon, 07 Apr 2008 05:36:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=292JwPhqkQZIhKnaPN4KYKdtGxc/W3nW0gSBSHDz5Og=; b=P2acW0/3kMZOfpWUckiMm0Dgy7CsuLdYRfhLK8bkqK3bJF7uSlK8T1Pw7CerZ/Q2NpfM2L/ZC0ETSIj8m7iUsdiDNe7UpV8B/w6t9g16NaIUsH6zdGTWKFI807IFFfGmgsKnEpwPfwbUeAwXhD3Ks/MzLBsXmp6sHWa7KrZphhg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cVzlzJ35onL+WofAwANqhca26EqRrBXkVkx59YdeCd85oH30fMGB3M5/BB0MeTcHM1VSHsEJHgMYdeknv9/yN19Ho/sgK7xS5T1tFrnFfLPHBz1U4N0Qo8E4hVrM63W3v/bG+Oas6mQCm15ystjs5syEY8WSAXenpZIDvF8ULcw= Received: by 10.151.110.14 with SMTP id n14mr2681196ybm.188.1207571772592; Mon, 07 Apr 2008 05:36:12 -0700 (PDT) Received: by 10.150.97.21 with HTTP; Mon, 7 Apr 2008 05:36:12 -0700 (PDT) Message-ID: <2e78013d0804070536t8037783x5078bd0074195a09@mail.gmail.com> Date: Mon, 7 Apr 2008 18:06:12 +0530 From: "Pavan Deolasee" To: "luke.78@libero.it" Subject: Re: Problem commit in function Cc: pgsql-sql In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/37 X-Sequence-Number: 30576 On Mon, Apr 7, 2008 at 6:00 PM, luke.78@libero.it wrote: > Hi, > I need to execute COMMIT in a function pgsql, > there is a way? > No. Transaction control statements like COMMIT/ROLLBACK/SAVEPOINT are not supported inside plpgsql functions. If you can tell us what you are trying to do, somebody may help you with that. Thanks, Pavan -- Pavan Deolasee EnterpriseDB http://www.enterprisedb.com