Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id E78D99FB1C4 for ; Fri, 24 Nov 2006 15:05:41 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 56771-02 for ; Fri, 24 Nov 2006 19:05:37 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id E5F0A9FA999 for ; Fri, 24 Nov 2006 15:05:36 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id kAOJ5XJu008816; Fri, 24 Nov 2006 14:05:33 -0500 (EST) To: "Marcelo Costa" cc: pgsql-admin@postgresql.org Subject: Re: Function ERRO after UPGRADE from 7.4 to 8.1.5 In-reply-to: References: Comments: In-reply-to "Marcelo Costa" message dated "Fri, 24 Nov 2006 14:45:10 -0300" Date: Fri, 24 Nov 2006 14:05:33 -0500 Message-ID: <8815.1164395133@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/209 X-Sequence-Number: 23736 "Marcelo Costa" writes: > I migrate my database from 7.4 to 8.1.5 and make tests with aplication > but this donīt works fine. > Some trigers donīt work and send to me error messages as this: > Warning: pg_query(): Query failed: ERROR: INSERT is not allowed in a > non-volatile function What do you find unclear about the error message? It was never a sane idea to try to modify the database in a function marked immutable or stable, because of the risk that the side-effects would get optimized away. 8.1 enforces that, where older versions did not. regards, tom lane