Note to potential adopters: PostgreSQL 8.0 will provide a small build infrastructure for plugin modules, and I believe the plr author is already working on equipping his package for that. This should help all those packages that currently need a full PostgreSQL source tree for building. So you might want to wait for PostgreSQL 8.0 and the new plr before you proceed.