chop-dbhi / avocado

Metadata APIs for Django
http://avocado.harvest.io
Other
41 stars 10 forks source link

Error when attempting to cancel a database query with a non-privileged user #307

Closed bruth closed 9 years ago

gracebrownecodes commented 9 years ago

This is odd because it appears a user should be able to cancel backends initiated by the same user, which should cover all the harvest cases, right?

http://www.postgresql.org/docs/9.3/static/functions-admin.html#FUNCTIONS-ADMIN-SIGNAL-TABLE

bruth commented 9 years ago

What I discovered is that this error returns when the query is no longer running as well. Rather than just returned null or something it throws this error. Odd.

On Tue, Feb 3, 2015 at 1:19 PM, Aaron Browne notifications@github.com wrote:

This is odd because it appears a user should be able to cancel backends initiated by the same user, which should cover all the harvest cases, right?

http://www.postgresql.org/docs/9.3/static/functions-admin.html#FUNCTIONS-ADMIN-SIGNAL-TABLE

Reply to this email directly or view it on GitHub: https://github.com/chop-dbhi/avocado/issues/307#issuecomment-72704375