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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-hackers by date

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