Excerpts from Tom Lane's message of mié may 12 14:07:13 -0400 2010:
> We could try to make this a supported build arrangement, but I'm
> inclined to think that a cleaner solution is to split out the loadable
> module as a separate contrib subdirectory. Thoughts?
Do you mean contrib/pg_upgrade/somelib? If so, +1. If you instead mean
putting the library in contrib/somelib, I'm not so sure that it's
cleaner than trying to support executable+shared lib in a single contrib
module.
--