Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- [#60] Force drop database when removing service accounts
- prevents errors if database is still in use

## [v14.18-1] - 2025-08-12
- [#46] Update postgresql to 14.18
Expand Down
2 changes: 1 addition & 1 deletion resources/remove-sa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ SELECT_DB_NAMES="SELECT datname FROM pg_database WHERE datistemplate=false AND d
for database_name in $(psql -U "${ADMIN_USERNAME}" -t -c "${SELECT_DB_NAMES}")
do
echo "Deleting service account '${database_name}'"
psql -U "${ADMIN_USERNAME}" -c "DROP DATABASE if exists ${database_name};" >/dev/null 2>&1
psql -U "${ADMIN_USERNAME}" -c "DROP DATABASE if exists ${database_name} WITH (FORCE);" >/dev/null 2>&1
psql -U "${ADMIN_USERNAME}" -c "DROP USER if exists ${database_name};" >/dev/null 2>&1
done