Skip site navigation (1) Skip section navigation (2)

Re: PG_MODULE_MAGIC checks and pg_migrator

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PG_MODULE_MAGIC checks and pg_migrator
Date: 2010-01-15 05:45:54
Message-ID: 20673.1263534354@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Bruce Momjian <bruce(at)momjian(dot)us> writes:
> For example, right now pg_migrator can migrate to 8.4 and 8.5, but there
> is no way to distribute a binary that will migrate to both because you
> need different shared libraries with different PG_MODULE_MAGIC values.

[ yawn... ]  By the time 8.5 (9.0?) ships, this will probably not be
true.  Quit stressing about it and figure on shipping a pg_migrator
per version.

> I am not sure what to suggest except perhaps that there be some way to
> link in a shared object without the magic block checks.

We are *not* doing that.  The potential for error, and costly debug
time, greatly outweighs any possible savings.

			regards, tom lane

In response to

pgsql-hackers by date

Next:From: Pavel StehuleDate: 2010-01-15 05:47:52
Subject: Re: quoting psql varible as identifier
Previous:From: Jaime CasanovaDate: 2010-01-15 04:43:58
Subject: Re: lock_timeout GUC patch

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group