fix(db): make pg_upgrade 13->17 idempotent and use the cluster's real install user #15
Reference in New Issue
Block a user
No description provided.
Delete Branch "idempotent"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
while deploying the previous PR (#14) to an older client, ran into an issue with the bespoke postgres update script (the install user used to originally create the database was different than expected)
this PR fixes the issue, so I am merging now, in case anyone upgrading from a very old deployment also has this issue
but it raises the desire to get off of this bespoke upgrade script and instead use pgautoupgrade. as mentioned in the other PR, this is unfortunately currently incompatible with pgvector or any of the existing published discourse images that I know of (the best solution may require publishing our own discourse image that uses pgautoupgrade and does not depend on pgvector)
however, merging this for now as this is the most immediate fix to keep the upgrade path seamless