diaspora/diaspora — pull request #2526 by Pistos (2011-12-15 03:13:49+00:00)
Title: Fix from-scratch migration on PostgreSQL with a non-root DB user

You get problems like:

ERROR: permission denied: "RI_ConstraintTrigger_506060" is a system trigger

This change is necessary or else nobody will be able to install Diaspora with PostgreSQL.