Too Long; Didn't Read
Development flow requires continuous patching the production database with local changes normally made automatically by the orm software. This method is deceptively simple, all we'll use is standard Unix commands, and is good enough for us. We obtain only the schemas without any permissions and grant sql comands (-Ox) The only catch is if there are only field differences the sql generated could be invalid, so check it out before proceed.This code is available in GitHub: https://github.com/hanspoo/postgres-diff.