If you have determined that a bug is PostgreSQL specific, and it is easier to debug it interactively, first create the database as mentioned at local run as identical to deployment as possible and then:
OURBIGBOOK_POSTGRES=true ./bin/generate-demo-data.js
OURBIGBOOK_POSTGRES=true npm run dev
or shortcut for the run:
npm run dev-pg
Note that doing sync-db also requires NODE_ENV=production as in:
NODE_ENV=production OURBIGBOOK_POSTGRES=true ./bin/sync-db.js
because we have to shell out to the ugly migration CLI, and that only understands NODE_ENV.