Skip to content

[DPE-5263] chore: bump charmed-postgresql snap revisions#1471

Merged
marceloneppel merged 1 commit intomainfrom
psql-history
Feb 24, 2026
Merged

[DPE-5263] chore: bump charmed-postgresql snap revisions#1471
marceloneppel merged 1 commit intomainfrom
psql-history

Conversation

@marceloneppel
Copy link
Member

@marceloneppel marceloneppel commented Feb 20, 2026

Issue

When a user runs juju ssh <postgres machine> and uses psql, the command history cannot be saved:

could not save history to file "/home/ubuntu/.psql_history": Permission denied

Solution

Update snap revisions to 246 (aarch64) and 247 (x86_64) to allow writes to .psql_history.

With these snap revisions, psql correctly writes history to ~/snap/charmed-postgresql/common/.psql_history, which persists across sessions.

Checklist

  • I have added or updated any relevant documentation.
  • I have cleaned any remaining cloud resources from my accounts.

Fixes #595.

Update snap revisions to 246 (aarch64) and 247 (x86_64)
to allow writes to .psql_history

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
@github-actions github-actions bot added the Libraries: OK The charm libs used are OK and in-sync label Feb 20, 2026
@marceloneppel marceloneppel added the bug Something isn't working as expected label Feb 20, 2026
@codecov
Copy link

codecov bot commented Feb 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.82%. Comparing base (7bf9c91) to head (e3b4b78).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1471   +/-   ##
=======================================
  Coverage   75.82%   75.82%           
=======================================
  Files          17       17           
  Lines        4430     4430           
  Branches      676      676           
=======================================
  Hits         3359     3359           
  Misses        838      838           
  Partials      233      233           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@marceloneppel marceloneppel marked this pull request as ready for review February 23, 2026 16:59
@marceloneppel marceloneppel requested a review from a team as a code owner February 23, 2026 16:59
@marceloneppel marceloneppel requested review from carlcsaposs-canonical, dragomirp and juju-charm-bot and removed request for a team February 23, 2026 16:59
@marceloneppel marceloneppel merged commit 946253b into main Feb 24, 2026
577 of 595 checks passed
@marceloneppel marceloneppel deleted the psql-history branch February 24, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected Libraries: OK The charm libs used are OK and in-sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

psql cannot write to .psql_history

3 participants