Closed alexsander-souza closed 7 months ago
Hi @alexsander-souza! Can you try the following revision of PostgreSQL and see if it fixes the issue for you?
juju deploy postgresql --channel 14/edge/largeobjects --series jammy
I can confirm it fixes the issue. the new user inherits the existing LOs and can update them.
Hi, latest 14/edge
(rev. 369) should have the fix.
Steps to reproduce
postgresql_client
interface)Expected behavior
The new deployment inherits the existing database with ownership of all existing Large Objects.
Actual behavior
When the application is removed the first time, postgresql drops its user. As result, all existing LO are inherited by the DB owner (
operator
) as seen in tablepg_catalog.pg_largeobject_metadata
. When the application is deployed again, postgresql creates a new user and grants all rights to it, but the LO objects remain owner by theoperator
user.Versions
Operating system: Ubuntu 22.04.3 LTS
Juju CLI: 3.3.1-genericlinux-amd64
Juju agent: 3.3.1
Charm revision: 14.9