When I run pg_dump on my database, it's converting one of my views (orders_plus) to a table, and then creating a rule that I guess puts it back to the equivalent of a view. That seems to be OK (though strange). However, right after the 'CREATE RULE' it puts this line:
ALTER VIEW orders_plus SET ();
That's not a valid command, and so I get an error when recovering the database.
... 3 years later ...
Seems you stumbled upon a bug in v9.2.1, which was fixed in v9.2.2.
See v9.2.2 release notes:
I recently noticed the exact same issue when restoring/migrating a production database. I used an older version of pg_dump than the database by mistake;)
The problem went away when using pg_dump v9.2.6.
For completeness, here's some software info: Postgres version 9.2.6 GNU/Linux 2.6.18-406.el5 #1 SMP Fri May 1 10:37:57 EDT 2015 x86_64. Red Hat Enterprise release 5.11 (Tikanga).