Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 0D32F9FA589 for ; Mon, 23 Jul 2007 11:10:35 -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 43617-10 for ; Mon, 23 Jul 2007 11:10:23 -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 D56519FA363 for ; Mon, 23 Jul 2007 11:10:31 -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 B0CAB83835A for ; Mon, 23 Jul 2007 16:10:29 +0200 (CEST) Received: from ip-80-236-223-202.dsl.scarlet.be ([80.236.223.202] helo=[192.168.1.102]) by smtp.eurofer.be with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1ICybz-0006AB-0X for pgsql-admin@postgresql.org; Mon, 23 Jul 2007 16:10:29 +0200 Message-ID: <46A4B6C2.50702@eurofer.be> Date: Mon, 23 Jul 2007 16:10:10 +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: -3.8 X-SA-Exim-Connect-IP: 80.236.223.202 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/338 X-Sequence-Number: 26319 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