Skip to content

PostgreSQL 17: Best way to update docker container postgresql  #1293

Closed

Description

@SimonBard

My docker container does not start since the update to Postgresql 17. Container was automatically updated by watchtower.
What is the best way to update the database?

One way I imagine is to start a container with older version on another port and from within the container, do
pg_dumpall -p 5432 | psql -d postgres -p 5433

I have no clue if this works or not, but could not find anything in the docu.

Activity

  1. tianon commented on Dec 2, 2024

    @tianon
    Member

    Major versions upgrades are complicated; see #37

    Arguably, we should probably remove the generic tag aliases like latest entirely. 🤔

    However, I'm going to close this in favor of #37 (which as a lot more discussion around the problem).

    (FWIW, your dump+load solution is effectively how the official pg_upgrade tool itself works.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions