I forgot to mention: The behaviour is intermittent, a succesfullexecution may occur.One sure way to trigger it seems to be:
CREATE EXTENSION castbug;DROP EXTENSION castbug;CREATE EXTENSION castbug;
This problem does not occur on 9.4.4