Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB

  1. Home
  2. uncategorized
  3. 🔎 how to migrate postgres 13 db to postgres 17 not scary easy explained for kids please don't fuck anything up one liner terminal linux

🔎 how to migrate postgres 13 db to postgres 17 not scary easy explained for kids please don't fuck anything up one liner terminal linux

Scheduled Pinned Locked Moved uncategorized
8 Posts 3 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • magiclike@soc.sekundenklebertransportverbot.deM This user is from outside of this forum
    magiclike@soc.sekundenklebertransportverbot.deM This user is from outside of this forum
    magiclike@soc.sekundenklebertransportverbot.de
    wrote last edited by
    #1

    🔎 how to migrate postgres 13 db to postgres 17 not scary easy explained for kids please don't fuck anything up one liner terminal linux

    mayu@heckin.howM magiclike@soc.sekundenklebertransportverbot.deM 2 Replies Last reply
    0
    • magiclike@soc.sekundenklebertransportverbot.deM magiclike@soc.sekundenklebertransportverbot.de

      🔎 how to migrate postgres 13 db to postgres 17 not scary easy explained for kids please don't fuck anything up one liner terminal linux

      mayu@heckin.howM This user is from outside of this forum
      mayu@heckin.howM This user is from outside of this forum
      mayu@heckin.how
      wrote last edited by
      #2

      @MagicLike have a backup and dont do it for the first time on production

      magiclike@soc.sekundenklebertransportverbot.deM 1 Reply Last reply
      0
      • mayu@heckin.howM mayu@heckin.how

        @MagicLike have a backup and dont do it for the first time on production

        magiclike@soc.sekundenklebertransportverbot.deM This user is from outside of this forum
        magiclike@soc.sekundenklebertransportverbot.deM This user is from outside of this forum
        magiclike@soc.sekundenklebertransportverbot.de
        wrote last edited by
        #3

        @mayu well I mean I will stop every service and run a backup through hetzner and dump the db to a local backup I think that will be enough but tbh I am doing this for the first time and I have no idea where to start

        1 Reply Last reply
        0
        • magiclike@soc.sekundenklebertransportverbot.deM magiclike@soc.sekundenklebertransportverbot.de

          🔎 how to migrate postgres 13 db to postgres 17 not scary easy explained for kids please don't fuck anything up one liner terminal linux

          magiclike@soc.sekundenklebertransportverbot.deM This user is from outside of this forum
          magiclike@soc.sekundenklebertransportverbot.deM This user is from outside of this forum
          magiclike@soc.sekundenklebertransportverbot.de
          wrote last edited by
          #4

          Seriously can anyone give me a hint where to look?

          magiclike@soc.sekundenklebertransportverbot.deM 1 Reply Last reply
          0
          • magiclike@soc.sekundenklebertransportverbot.deM magiclike@soc.sekundenklebertransportverbot.de

            Seriously can anyone give me a hint where to look?

            magiclike@soc.sekundenklebertransportverbot.deM This user is from outside of this forum
            magiclike@soc.sekundenklebertransportverbot.deM This user is from outside of this forum
            magiclike@soc.sekundenklebertransportverbot.de
            wrote last edited by
            #5

            So what I ended up doing was purging the postgres 16 & 17 installs and doing a fresh new install of postgres 17. This triggered some kind of auto migration tool of postgres and I just needed to say "yes" a few times and it did everything by itself. Now I only need to drop the pg 13 cluster and I am done :3

            magiclike@soc.sekundenklebertransportverbot.deM ? 2 Replies Last reply
            0
            • magiclike@soc.sekundenklebertransportverbot.deM magiclike@soc.sekundenklebertransportverbot.de

              So what I ended up doing was purging the postgres 16 & 17 installs and doing a fresh new install of postgres 17. This triggered some kind of auto migration tool of postgres and I just needed to say "yes" a few times and it did everything by itself. Now I only need to drop the pg 13 cluster and I am done :3

              magiclike@soc.sekundenklebertransportverbot.deM This user is from outside of this forum
              magiclike@soc.sekundenklebertransportverbot.deM This user is from outside of this forum
              magiclike@soc.sekundenklebertransportverbot.de
              wrote last edited by
              #6

              cc @ixhby @tastytea @vaelfonia @Soblow @mayu

              1 Reply Last reply
              0
              • magiclike@soc.sekundenklebertransportverbot.deM magiclike@soc.sekundenklebertransportverbot.de

                So what I ended up doing was purging the postgres 16 & 17 installs and doing a fresh new install of postgres 17. This triggered some kind of auto migration tool of postgres and I just needed to say "yes" a few times and it did everything by itself. Now I only need to drop the pg 13 cluster and I am done :3

                ? Offline
                ? Offline
                Guest
                wrote last edited by
                #7

                @MagicLike I think this is what it can do in Debian, nice.

                My approach is to stop everything else, use pg_dump on the old version, then psql to load it into the new version (which has distinct Docker volumes). That works with Docker images that aren't designed for upgrades. Except that I'm still using an old version as I haven't debugged some potential authentication changes.

                magiclike@soc.sekundenklebertransportverbot.deM 1 Reply Last reply
                0
                • ? Guest

                  @MagicLike I think this is what it can do in Debian, nice.

                  My approach is to stop everything else, use pg_dump on the old version, then psql to load it into the new version (which has distinct Docker volumes). That works with Docker images that aren't designed for upgrades. Except that I'm still using an old version as I haven't debugged some potential authentication changes.

                  magiclike@soc.sekundenklebertransportverbot.deM This user is from outside of this forum
                  magiclike@soc.sekundenklebertransportverbot.deM This user is from outside of this forum
                  magiclike@soc.sekundenklebertransportverbot.de
                  wrote last edited by
                  #8

                  @lukyan mhm I mean I dumped the cluster anyway beforehand just to be sure but wanted it to actually migrate cleanly before doing it all manually - but yeah I don't really like Docker so I opted to do everything bare-metal and it has been a smooth sailing for me so far...

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Login or register to search.
                  Powered by NodeBB Contributors
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups