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

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?
17 Replies
Percy
Percy20h ago
Project ID: N/A
Brody
Brody20h ago
how much data is in the old database?
will_matthew
will_matthew20h ago
Not much Let me check
will_matthew
will_matthew20h ago
TimescaleDB is the new.
No description
No description
will_matthew
will_matthew20h ago
looks like 1.5GB
Brody
Brody20h ago
id just do pg_dump and pg_restore i wouldn't mess with the volume, we cant help with data loss
will_matthew
will_matthew20h ago
Gotcha I'll pg_dump and pg_restore. Quick question 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? Or is there simple way to just add timescale extension to the existing "atlas_core_db" db
Brody
Brody20h ago
the new database is gonna be the way, installing extensions on dockerized databases isnt the easiest thing
will_matthew
will_matthew20h ago
Gotcha thank you sir You guys got a tip jar? I'd like to buy you a coffee
Brody
Brody20h ago
no no i work for railway, theres no need for tips
will_matthew
will_matthew20h 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? Last question haha
Brody
Brody20h ago
i genuinely dont know, sorry
will_matthew
will_matthew17h ago
No worries. Hey one quick thing If I wanted to change a variable in the "postgresql.conf" file simply max_locks_per_transaction = 128, how could I do this?
Brody
Brody16h ago
with an sql query that changes that setting, i dont know it off the top of my head
will_matthew
will_matthew16h 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 That wouldn't be a redeploy correct? Is there a way to just 'reboot' lol
Brody
Brody16h ago
yeah, click restart
will_matthew
will_matthew16h ago
(BTW thank you so much for your time and help, you wizard) gotcha thanks
Want results from more Discord servers?
Add your server