I've fixed create_undef.pl to generate a working postgis_undef.sql I don't know how useful this is, but since its distributed ... A useful script would be IMHO a postgis_upgrade.sql or a postgis.sql replacing old function/operators/casts etc with new ones... --strk;