I would be more inclined to say we add something to
raise an error like:
begin
raise_application_error(0,'Upgrade upgrade-5.2.0d8-5.2.0d9 needs to be ported to oracle');
end;
/
and put it in the oracle upgrade directory named properly.
Putting the pg script in means you might end in some wierd (hard to fix) state.