|
| 1 | + |
| 2 | +## Prerequisites |
| 3 | + |
| 4 | +To follow this procedure: |
| 5 | + |
| 6 | +- [Install $TIMESCALE_DB][red-hat-install]. |
| 7 | +- Create a $TIMESCALE_DB repository in your `yum` `repo.d` directory. |
| 8 | + |
| 9 | +## Install $TOOLKIT_LONG |
| 10 | + |
| 11 | +These instructions use the `yum` package manager. |
| 12 | + |
| 13 | +<Procedure> |
| 14 | + |
| 15 | +1. Set up the repository: |
| 16 | + |
| 17 | + ```bash |
| 18 | + curl -s https://packagecloud.io/install/repositories/timescale/timescaledb/script.deb.sh | sudo bash |
| 19 | + ``` |
| 20 | + |
| 21 | +1. Update your local repository list: |
| 22 | + |
| 23 | + ```bash |
| 24 | + yum update |
| 25 | + ``` |
| 26 | + |
| 27 | +1. Install $TOOLKIT_LONG: |
| 28 | + |
| 29 | + ```bash |
| 30 | + yum install timescaledb-toolkit-postgresql-17 |
| 31 | + ``` |
| 32 | + |
| 33 | +1. [Connect to the database][connect] where you want to use $TOOLKIT_SHORT. |
| 34 | +1. Create the $TOOLKIT_SHORT extension in the database: |
| 35 | + |
| 36 | + ```sql |
| 37 | + CREATE EXTENSION timescaledb_toolkit; |
| 38 | + ``` |
| 39 | + |
| 40 | +</Procedure> |
| 41 | + |
| 42 | +## Update $TOOLKIT_LONG |
| 43 | + |
| 44 | +Update $TOOLKIT_SHORT by installing the latest version and running `ALTER EXTENSION`. |
| 45 | + |
| 46 | +<Procedure> |
| 47 | + |
| 48 | +1. Update your local repository list: |
| 49 | + |
| 50 | + ```bash |
| 51 | + yum update |
| 52 | + ``` |
| 53 | + |
| 54 | +1. Install the latest version of $TOOLKIT_LONG: |
| 55 | + |
| 56 | + ```bash |
| 57 | + yum install timescaledb-toolkit-postgresql-17 |
| 58 | + ``` |
| 59 | + |
| 60 | +1. [Connect to the database][connect] where you want to use the new version of $TOOLKIT_SHORT. |
| 61 | +1. Update the $TOOLKIT_SHORT extension in the database: |
| 62 | + |
| 63 | + ```sql |
| 64 | + ALTER EXTENSION timescaledb_toolkit UPDATE; |
| 65 | + ``` |
| 66 | + |
| 67 | + <Highlight type="note"> |
| 68 | + |
| 69 | + For some $TOOLKIT_SHORT versions, you might need to disconnect and reconnect active |
| 70 | + sessions. |
| 71 | + |
| 72 | + </Highlight> |
| 73 | + |
| 74 | +</Procedure> |
| 75 | + |
| 76 | + |
| 77 | +[brew-install]: https://brew.sh |
| 78 | +[cloud]: /use-timescale/:currentVersion:/services/ |
| 79 | +[debian-install]: /self-hosted/:currentVersion:/install/installation-linux/ |
| 80 | +[docker-install]: /self-hosted/:currentVersion:/install/installation-docker/ |
| 81 | +[mst]: /mst/:currentVersion:/ |
| 82 | +[red-hat-install]: /self-hosted/:currentVersion:/install/installation-linux/ |
| 83 | +[toolkit-gh-docs]: https://github.com/timescale/timescaledb-toolkit#-installing-from-source |
| 84 | +[connect]: /integrations/:currentVersion:/find-connection-details/ |
| 85 | +[update-docker]: /self-hosted/:currentVersion:/upgrades/upgrade-docker/ |
| 86 | +[macos-install]: /self-hosted/:currentVersion:/install/installation-macos/ |
0 commit comments