Is there any reason to avoid pg_restore --disable-triggers ?
Yes, this extension needs to work with everyone's normal restore process. Otherwise I would have to ask everyone who used my extension to modify their pg_restore command.
This also means that I can't rely on a wrapper to pg_restore, as Keith suggested earlier.