"Dan Armbrust" <daniel(dot)armbrust(dot)list(at)gmail(dot)com> writes:
> It turns out, that commenting out the "shared_preload_libraries" in
> the postgresql.conf file breaks pg_restore.
It hardly "breaks" anything. The errors you show just indicate that you
had the plpgsql debugger loaded into your database.
regards, tom lane