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

a year 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?

27 Replies

a year ago

how much data is in the old database?


rootmateo
PROOP

a year ago

Not much


rootmateo
PROOP

a year ago

Let me check


rootmateo
PROOP

a year ago

TimescaleDB is the new.

1297922616211800000
1297922616836755500


rootmateo
PROOP

a year ago

looks like 1.5GB


a year ago

id just do pgdump and pgrestore


a year ago

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


rootmateo
PROOP

a year ago

Gotcha I'll pgdump and pgrestore. Quick question


rootmateo
PROOP

a year 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

a year ago

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


a year ago

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


rootmateo
PROOP

a year ago

Gotcha thank you sir


rootmateo
PROOP

a year ago

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


a year ago

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


rootmateo
PROOP

a year ago

Much respect. Quick question, I noticed you have "NOTSTUNE" 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

a year ago

Last question haha


a year ago

i genuinely dont know, sorry


rootmateo
PROOP

a year ago

No worries. Hey one quick thing


rootmateo
PROOP

a year ago

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


rootmateo
PROOP

a year ago

simply maxlocksper_transaction = 128, how could I do this?


a year ago

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


rootmateo
PROOP

a year 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

a year ago

That wouldn't be a redeploy correct?


rootmateo
PROOP

a year ago

Is there a way to just 'reboot' lol


a year ago

yeah, click restart


rootmateo
PROOP

a year ago

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


rootmateo
PROOP

a year ago

gotcha thanks


Loading...