Hello
Seems you tried import something from pg_dump result. Please check query text with set_config response in yours log. I think this is:
SELECT pg_catalog.set_config('search_path', '', false);
If so all works as expected and not related to \i command.
regards, Sergei