Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 666F1650408 for ; Tue, 2 Sep 2008 14:01:55 -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 42368-03-8 for ; Tue, 2 Sep 2008 14:01:46 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail129141.authsmtp.net (outmail129141.authsmtp.net [62.13.129.141]) by postgresql.org (Postfix) with ESMTP id 83B036507CA for ; Tue, 2 Sep 2008 13:17:01 -0300 (ADT) Received: from mail-c188.authsmtp.com (mail-c188.authsmtp.com [62.13.128.25]) by punt2.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m82GGtkO078558; Tue, 2 Sep 2008 17:16:55 +0100 (BST) Received: from [192.168.0.2] (85-211-229-97.dyn.gotadsl.co.uk [85.211.229.97]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m82GGfiR009245; Tue, 2 Sep 2008 17:16:42 +0100 (BST) Subject: Re: rmgr hooks and contrib/rmgr_hook From: Simon Riggs To: Tom Lane Cc: ITAGAKI Takahiro , pgsql-hackers@postgresql.org In-Reply-To: <14451.1220369969@sss.pgh.pa.us> References: <20080901121833.4A18.52131E4D@oss.ntt.co.jp> <1220345064.4371.275.camel@ebony.2ndQuadrant> <20080902174613.76B2.52131E4D@oss.ntt.co.jp> <1220348980.4371.316.camel@ebony.2ndQuadrant> <14451.1220369969@sss.pgh.pa.us> Content-Type: text/plain Date: Tue, 02 Sep 2008 17:24:33 +0100 Message-Id: <1220372673.4371.465.camel@ebony.2ndQuadrant> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Server-Quench: 879cd92a-790a-11dd-aecc-001871e930f4 X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksadRtFaAdbflxB HGQLW1xEUVp7WGV/ bwgfZQBDYEtPQQdo WVZARU1QEQdtHhxP WxYcJW4kLmdGeHdy YUMsX3leWApyck8u FkdWRHABbGcxdWEe BBRFJlYHIx5Kfh5N bVEqXXANN2FJBC9q VzwTFhsSEA9kHWxP Rw4XZVIVRkUQVjc6 S1gJGjMzB0wPAD82 IAYRKlkbHy42 X-Authentic-SMTP: 61633235383639.cat.dmpriest.net.uk:1186/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/111 X-Sequence-Number: 123240 On Tue, 2008-09-02 at 11:39 -0400, Tom Lane wrote: > Simon Riggs writes: > > On Tue, 2008-09-02 at 18:30 +0900, ITAGAKI Takahiro wrote: > >> How about adding a new variable "recovery_preload_libaries" like as > >> shared_preload_libraries? Rmgr libs in it are loaded only in startup > >> process and only if recovery is needed. > > > Good point. If others agree, I will re-implement this way. > > Aside from the objections raised by Heikki Heikki hasn't raised any. He was objecting to an additional thought from Itagaki. There haven't been any other objections to this concept. > , I'm not seeing the use-case > for an rmgr that only executes during recovery; in fact I'm not entirely > sure that I see a use-case for this entire patch. Where are the WAL > records that the "loadable rmgr" processes going to come from? There is ample reason to do this. I covered this in my first post, please re-read up thread. You have commented on this post already, so I'm suprised by your comments. Rmgr functions only execute during recovery, that is their role in life. Except when we have WAL_DEBUG enabled they are never called elsewhere. -- Simon Riggs www.2ndQuadrant.com PostgreSQL Training, Services and Support