Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 1579E64FF05 for ; Mon, 15 Sep 2008 10:58:58 -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 69358-01-6 for ; Mon, 15 Sep 2008 10:58:55 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.26]) by postgresql.org (Postfix) with ESMTP id 3D27264FD67 for ; Mon, 15 Sep 2008 10:58:55 -0300 (ADT) Received: by ey-out-2122.google.com with SMTP id 6so902260eyi.61 for ; Mon, 15 Sep 2008 06:58:53 -0700 (PDT) Received: by 10.210.16.16 with SMTP id 16mr5425878ebp.35.1221487133111; Mon, 15 Sep 2008 06:58:53 -0700 (PDT) Received: from oxford.xeocode.com.enterprisedb.com ( [82.16.16.210]) by mx.google.com with ESMTPS id g9sm5914402gvc.0.2008.09.15.06.58.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 15 Sep 2008 06:58:52 -0700 (PDT) To: Simon Riggs Cc: Tom Lane , Heikki Linnakangas , ITAGAKI Takahiro , pgsql-hackers@postgresql.org Subject: Re: rmgr hooks and contrib/rmgr_hook In-Reply-To: <1221485063.3913.1350.camel@ebony.2ndQuadrant> (Simon Riggs's message of "Mon\, 15 Sep 2008 14\:24\:23 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Draft-From: ("nnimap+imap.gmail.com:HACKERS" 1272) 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> <1220372673.4371.465.camel@ebony.2ndQuadrant> <48CB72C8.1070700@enterprisedb.com> <1221470800.3913.1229.camel@ebony.2ndQuadrant> <87sks1oi4o.fsf@oxford.xeocode.com> <24006.1221483138@sss.pgh.pa.us> <1221485063.3913.1350.camel@ebony.2ndQuadrant> From: Gregory Stark Organization: EnterpriseDB Date: Mon, 15 Sep 2008 14:58:50 +0100 Message-ID: <87y71tmrxh.fsf@oxford.xeocode.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/977 X-Sequence-Number: 124106 Simon Riggs writes: > The version mismatch idea presumes that a code author would structure > their code in two pieces: one to generate the WAL and one to read it. > Seems much more likely to me that authors would have one module > containing both as a way of avoiding the problem altogether. So I'm not > sure what to check, and against what? No, the danger is that someone generates a backup with one version of the plugin and then restores with a different version of the plugin. That would be frightfully easy to do when doing a minor upgrade, for example. Or on a standby database if you've installed a new version of the plugin since the standby was built. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com Ask me about EnterpriseDB's PostGIS support!