Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 4AB379FBC09 for ; Wed, 25 Jul 2007 05:38:33 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 08180-04 for ; Wed, 25 Jul 2007 05:38:26 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from BRUBLUmx12.mactelecom.net (BRUBLUmx12.mactelecom.net [217.64.240.4]) by postgresql.org (Postfix) with ESMTP id 5E5C09FB9D4 for ; Wed, 25 Jul 2007 05:38:30 -0300 (ADT) Received: from smtp.eurofer.be (217.64.254.218.mactelecom.net [217.64.254.218]) by BRUBLUmx12.mactelecom.net (Postfix) with ESMTP id ECC632C4269 for ; Wed, 25 Jul 2007 10:38:28 +0200 (CEST) Received: from pcgdl.eurofer.be ([192.168.3.150]) by smtp.eurofer.be with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1IDcNo-0000yN-Sw for pgsql-admin@postgresql.org; Wed, 25 Jul 2007 10:38:28 +0200 Message-ID: <46A70BF1.40800@eurofer.be> Date: Wed, 25 Jul 2007 10:38:09 +0200 From: De Leeuw Guy User-Agent: IceDove 1.5.0.10 (X11/20070329) MIME-Version: 1.0 To: pgsql-admin@postgresql.org X-Enigmail-Version: 0.94.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam_score: -4.0 X-SA-Exim-Connect-IP: 192.168.3.150 X-SA-Exim-Mail-From: G.De_Leeuw@eurofer.be Subject: trigger bugs ? and suggestions X-SA-Exim-Scanned: Yes (on smtp.eurofer.be) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/335 X-Sequence-Number: 26316 Hello all Follow up my previous post and the respons given by Andrew Sullivan, I make a lot of tests and first problem the function _PG_fini are never called it is a bug ?. This is a big problem for me because I want to cleanup the data managed by my trigger. second problem I cannot detect from a trigger the kind of call (row or transaction) I suggest (if it's possible) to add a trigger event like : begin start, begin end copy start copy end or something like that. and finally if the trigger run inside a transaction like copy or begin/end I cannot read the modifications make by my trigger in the same session. it is possible to have a special select like select_uncommited data ? regards Guy