Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
PG::Error: ERROR: permission denied: "RI_ConstraintTrigger_26748" is a system trigger
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mcbsys  
View profile  
 More options Sep 14 2012, 9:50 pm
From: mcbsys <mcbsyst...@gmail.com>
Date: Fri, 14 Sep 2012 18:50:43 -0700 (PDT)
Local: Fri, Sep 14 2012 9:50 pm
Subject: PG::Error: ERROR: permission denied: "RI_ConstraintTrigger_26748" is a system trigger

I have foreign key constraints in my Postgres 8.4 database. Somehow this
causes database_cleaner to try to do something that it is not allowed to do
as a standard database user. Is that a bug?

Anyway after googling around, I found that I could either monkey-patch
ActiveRecord or give the test user superuser privileges in Postgres. I
opted for the latter.

I blogged about the details here:

http://www.mcbsys.com/techblog/2012/09/postgres-error-trigger-is-a-sy...

Mark


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »