Simple Q: How to move volume to new db service.
rootmateo
PROOP

2 years ago

I'm currently moving from the base postgres template to the timescale version (for financial data) "https://github.com/railwayapp-templates/timescale-postgis-ssl/pkgs/container/timescale-postgis-ssl"

How can I most efficiently and effectively move my data from the old db service to the new?

Closed

27 Replies

2 years ago

how much data is in the old database?


rootmateo
PROOP

2 years ago

Not much


rootmateo
PROOP

2 years ago

Let me check


rootmateo
PROOP

2 years ago

TimescaleDB is the new.

1297922616211800095

1297922616836755456


rootmateo
PROOP

2 years ago

looks like 1.5GB


2 years ago

id just do pg_dump and pg_restore


2 years ago

i wouldn't mess with the volume, we cant help with data loss


rootmateo
PROOP

2 years ago

Gotcha I'll pg_dump and pg_restore. Quick question


rootmateo
PROOP

2 years ago

Is The TimescaleDB template I'm going with (i see your a dev on it) the best approach to getting a postgres db with timescale extension/capabilities?


rootmateo
PROOP

2 years ago

Or is there simple way to just add timescale extension to the existing "atlas_core_db" db


2 years ago

the new database is gonna be the way, installing extensions on dockerized databases isnt the easiest thing


rootmateo
PROOP

2 years ago

Gotcha thank you sir


rootmateo
PROOP

2 years ago

You guys got a tip jar? I'd like to buy you a coffee


2 years ago

no no i work for railway, theres no need for tips


rootmateo
PROOP

2 years ago

Much respect. Quick question, I noticed you have "NO_TS_TUNE" set to true.

Given that I have 1 table that will use the timescale timeseries functionality (hyper table / compression and the like), should this be set to false?


rootmateo
PROOP

2 years ago

Last question haha


2 years ago

i genuinely dont know, sorry


rootmateo
PROOP

2 years ago

No worries. Hey one quick thing


rootmateo
PROOP

2 years ago

If I wanted to change a variable in the "postgresql.conf" file


rootmateo
PROOP

2 years ago

simply max_locks_per_transaction = 128, how could I do this?


2 years ago

with an sql query that changes that setting, i dont know it off the top of my head


rootmateo
PROOP

2 years ago

Gotcha, i was able to run it (i can track it down if need be) but it says I need to restart the database


rootmateo
PROOP

2 years ago

That wouldn't be a redeploy correct?


rootmateo
PROOP

2 years ago

Is there a way to just 'reboot' lol


2 years ago

yeah, click restart


rootmateo
PROOP

2 years ago

(BTW thank you so much for your time and help, you wizard)


rootmateo
PROOP

2 years ago

gotcha thanks


Welcome!

Sign in to your Railway account to join the conversation.

Loading...