hezean / sustc

Template for project 2 of SUSTech Principles of Database Systems (CS307 / CS213), 23 fall semester.
http://172.18.34.154
MIT License
22 stars 10 forks source link

ERROR: permission denied to set parameter "session_replication_role" #92

Closed 7Sageer closed 10 months ago

7Sageer commented 10 months ago

Describe your question

In my upload part, I use SET session_replication_role = 'replica' to temporarily remove foreign key. When I execute the online benchmark, I found that there's a error that "ERROR: permission denied to set parameter "session_replication_role"". Is it not permitted in benchmark? Should I remove this? If I doing so, what should I do to replace it?

image
hezean commented 10 months ago
Screenshot 2023-12-27 at 00 28 48

your program will run under a regular user who is nothing else than the owner of the test db, thus you won't have the permission to alter such system config. you need to find the solution by yourself since this is your project and we won't provide you such detailed guidance.