I use Postgresql 9.5 in a Vagrant environment: Ubuntu 16.04 Server with the latest updates. I use a Yii2 application. Of course I know there is open issue about this problem, so maybe this is Yii2 related.
I got the following error:
[yii\db\Exception] SQLSTATE[42501]: Insufficient privilege: 7 ERROR: permission denied: "RI_ConstraintTrigger_c_16773" is a system trigger
The SQL being executed was: ALTER TABLE "public"."address" DISABLE TRIGGER ALL; ALTER TABLE "public"."category" DISABLE TRIGGER ALL; ALTER TABLE "public"."customer" DISABLE TRIGGER ALL;
This error happens when I want to run Codeception tests. But I did not see any config problems. (Because when I use the app as normal user, the database operations works fine.)
I have tried this solution. But it does not work, or this one: but the same, no any effect.