-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TimescaleDB: Add psql to timescaledb migration scripts (#1364)
* Add psql to timescaledb migration scripts Mirror node using existing v1 schema will need to migrate from a postgres db to a new timescaledb. We should offer some scripts to help operators migrate with ease - Add a `csvBackupTables.sql` file that backs up v1 tables to separate csv files for future restore - Add a `createHyperTables.sql` file that updated the table schema differences and create Hyper table prior to restore - Add a `csvRestoreTables.sql` file that uses COPY to restore back files for each of the tables - Add a `updateSchema.sql` file that handles schema difference and runs after data migration to ensure data is in sync - Add a `migration.config` file that hold the config values for a script to run all the migration steps - Add a `migration.sh` main script that orchestrates the migration utilizing all the stages - Add a `init_v2.sql` file that may be used to initiate a timescale db node by creating the database and users with appropriate permissions - Rename `init.sql` to `init_v1.sql` - Update the `installation.md` file with instruction on timescaledb setup - Update the `operations.md` file with instructions on v1 to v2 migration procedure - Update importer config with concept of importer user that differs from owner user - Update helm chart to support deployment of timescaledb with new custom schema Signed-off-by: Nana-EC <[email protected]>
- Loading branch information
Showing
31 changed files
with
643 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.