pg.ddx.io  pgsql-patches@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gregory Stark <stark@enterprisedb.com>
To: Simon Riggs <simon@2ndQuadrant.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Cc: ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>
Cc: pgsql-hackers@postgresql.org
Subject: Re: rmgr hooks and contrib/rmgr_hook
Date: Mon, 15 Sep 2008 14:58:50 +0100
Message-ID: <87y71tmrxh.fsf@oxford.xeocode.com> (raw)
In-Reply-To: <1221485063.3913.1350.camel@ebony.2ndQuadrant>
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>

Simon Riggs <simon@2ndQuadrant.com> 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!



view thread (23+ messages)  latest in thread

Message-ID: <87y71tmrxh.fsf@oxford.xeocode.com>
Permalink:  ../87y71tmrxh.fsf@oxford.xeocode.com/
Also on:    postgresql.org/message-id/87y71tmrxh.fsf@oxford.xeocode.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-patches@postgresql.org
  Cc: stark@enterprisedb.com, simon@2ndQuadrant.com, tgl@sss.pgh.pa.us, heikki.linnakangas@enterprisedb.com, itagaki.takahiro@oss.ntt.co.jp, pgsql-hackers@postgresql.org
  Subject: Re: rmgr hooks and contrib/rmgr_hook
  In-Reply-To: <87y71tmrxh.fsf@oxford.xeocode.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox