We have a Django application running on Ubuntu using a Postgres DB on the same server. We are backing up our database every day with the following command:
pg_dump -Fc -U user1 -w db_name > ${filepath}`
The problem is that is seems to be blocking read/write access to the same database with the same user (user1
) no our Django app. Checking the documentation it states that
pg_dump does not block other users accessing the database (readers or writers)
Which makes me think that maybe is it blocking access to the DB because the Django app is using the same user. Can this happen? I didn't find any documentation that clarifies it.