a month ago
Hi,
I have a Postgres 15.14 that I'd like to upgrade to using 18.1 if possible with PG Vector support. I don't really know how to do this. I am a newbie on this thing. So I'm asking if you can help me.
I do not want to lose any of my data and also I spent some time setting up a TailScale router which I would like to continue using as well
Thanks in advance
Pinned Solution
a month ago
I think your best choice would be to create a temporary environment to test the migration, when creating, you can copy volume data to it.
Then remove the existing Postgre and add the new one you want, them attach the old volume to the new PostgreSQL and check if it works.
If it does, them on your real environment/production/staging/etc, repeat the process, should be pretty quick and give you low down-time.
This is just how I thought of doing it... not sure it'll work, but pretty sure...
On a more safe side, no destructive actions, you could simply detach the volume from the old postgres and attach to the new one. That way you could maybe only re-attach to the old one is case it don't work, I would still try this on a dev/staging environment first.
6 Replies
a month ago
I think your best choice would be to create a temporary environment to test the migration, when creating, you can copy volume data to it.
Then remove the existing Postgre and add the new one you want, them attach the old volume to the new PostgreSQL and check if it works.
If it does, them on your real environment/production/staging/etc, repeat the process, should be pretty quick and give you low down-time.
This is just how I thought of doing it... not sure it'll work, but pretty sure...
On a more safe side, no destructive actions, you could simply detach the volume from the old postgres and attach to the new one. That way you could maybe only re-attach to the old one is case it don't work, I would still try this on a dev/staging environment first.
a month ago
Thanks a lot for that answer and it seems like I need to learn what the different environments are and how they work!
halduur
Thanks a lot for that answer and it seems like I need to learn what the different environments are and how they work!
a month ago
No worries. Refer to https://docs.railway.com/guides/environments it's all well documented :)
halduur
Thanks a lot for that answer and it seems like I need to learn what the different environments are and how they work!
a month ago
Hi OP, I have opened this question up to bounty as Jorge was able to help you out here. If your issue is resolved, please consider accepting their helpful reply so they may win the bounty 
Status changed to Open brody • about 1 month ago
a month ago
This gets me wondering if bounties work at all, I've seem to few 'granted' bounties, users get the answers and just bounce... Well, that's life for ya haha
a month ago
Hi Jorge, I have accepted your answer so you should have gotten your bounty. If not then I guess I need support on how to accept in the right way too ;-)
Status changed to Solved brody • about 1 month ago


