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?
Solution:
id just do pg_dump and pg_restore
Jump to solution
18 Replies
Percy
Percy2mo ago
Project ID: N/A
Brody
Brody2mo ago
how much data is in the old database?
will_matthew
will_matthewOP2mo ago
Not much Let me check
will_matthew
will_matthewOP2mo ago
TimescaleDB is the new.
No description
No description
will_matthew
will_matthewOP2mo ago
looks like 1.5GB
Solution
Brody
Brody2mo ago
id just do pg_dump and pg_restore
Brody
Brody2mo ago
i wouldn't mess with the volume, we cant help with data loss
will_matthew
will_matthewOP2mo 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
Brody2mo ago
the new database is gonna be the way, installing extensions on dockerized databases isnt the easiest thing
will_matthew
will_matthewOP2mo ago
Gotcha thank you sir You guys got a tip jar? I'd like to buy you a coffee
Brody
Brody2mo ago
no no i work for railway, theres no need for tips
will_matthew
will_matthewOP2mo 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
Brody2mo ago
i genuinely dont know, sorry
will_matthew
will_matthewOP2mo 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
Brody2mo ago
with an sql query that changes that setting, i dont know it off the top of my head
will_matthew
will_matthewOP2mo 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
Brody2mo ago
yeah, click restart
will_matthew
will_matthewOP2mo ago
(BTW thank you so much for your time and help, you wizard) gotcha thanks
Want results from more Discord servers?
Add your server