<p dir="ltr">Hmm. It strikes me that one could argue that it is a bug in pg_dump if I ask to exclude schema "foo" (-n option) and then triggers referencing functions in that schema are retained in the dump.</p>
<p dir="ltr">The argument is not immune to rebuff, but it seems worth trying.</p>