Could not save history to file "/var/lib/postgresql/.psql_history": No such file or directory
Summary
Using the psql console commands runs normally but when you exit the console this next message appears:
could not save history to file "/var/lib/postgresql/.psql_history": No such file or directory
Steps to reproduce
1- Access to postgres using psql console 2- Execute some commands 3- Exit from the psql console
Expected Behaviour
Expect no errors using the console.
Environment
- StackGres version:
0.9.5 - Kubernetes version: 1.17
- Cloud provider or hardware configuration: GKE
Relevant logs and/or screenshots
$ kubectl exec -it -n mydb mydb-0 -c postgres-util -- psql
psql (12.6 OnGres Inc.)
Type "help" for help.
postgres=# \l+
postgres=# \q
could not save history to file "/var/lib/postgresql/.psql_history": No such file or directory