Once I had the same problem with not existing schema. In my case removing all the references to the schema worked fine and I had no problems with the db ever since. It wa PG 8.2.1 and since the operation we migrated all the DBs including the one to 9.0.6 and everything works fine.