Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revoke before drop #895

Merged
merged 1 commit into from Mar 27, 2020
Merged

Revoke before drop #895

merged 1 commit into from Mar 27, 2020

Conversation

@kay0u
Copy link
Member

kay0u commented Mar 24, 2020

The problem

Sometime postgresql can't be removed with this message:

dropdb: database removal failed: ERROR: database "thedb" is being accessed by other usersWarning:
DETAIL: There is 1 other session using the database.

Solution

https://stackoverflow.com/questions/5408156/how-to-drop-a-postgresql-database-if-there-are-active-connections-to-it
Revoke before dumb the db.

PR Status

Done

How to test

You can install an app which use a psql db, install pgadmin, look the db with pgadmin and remove the app which use psql at the same time.

Validation

  • Principle agreement 0/2 :
  • Quick review 0/1 :
  • Simple test 0/1 :
  • Deep review 0/1 :
Copy link
Member

JimboJoe left a comment

LGTM 👍

@kay0u kay0u added this to the 3.8.x milestone Mar 25, 2020
@alexAubin alexAubin merged commit 43739bf into YunoHost:stretch-unstable Mar 27, 2020
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.