Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Commit 711abde

Browse files
committed
Prepare for the 0.3.0 release (#28)
1 parent 22c36a0 commit 711abde

7 files changed

+64
-56
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[package]
22
name = "promscale_rs"
3-
version = "0.1.3"
4-
authors = ["Joshua Lockerman <[email protected]>"]
3+
version = "0.3.0"
54
edition = "2018"
65

76
[lib]

DockerMakefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ docker-image-ts1: docker-image-build-1
2828

2929
docker-image-ts2-12: PG_VER=pg12
3030
docker-image-ts2-12: TIMESCALEDB_MAJOR=2
31-
docker-image-ts2-12: TIMESCALEDB_VER=2.3.0
31+
docker-image-ts2-12: TIMESCALEDB_VER=2.5.0
3232
docker-image-ts2-12: docker-image-build-2-12
3333

3434
docker-image-ts2-13: PG_VER=pg13
3535
docker-image-ts2-13: TIMESCALEDB_MAJOR=2
36-
docker-image-ts2-13: TIMESCALEDB_VER=2.3.0
36+
docker-image-ts2-13: TIMESCALEDB_VER=2.5.0
3737
docker-image-ts2-13: docker-image-build-2-13
3838

3939
docker-image-ts2-14: PG_VER=pg14

Readme.md

+58-50
Original file line numberDiff line numberDiff line change
@@ -20,64 +20,72 @@ The extension is installed by default on the
2020
[`timescaledev/promscale-extension:latest-pg12`](https://hub.docker.com/r/timescaledev/promscale-extension) docker image.
2121

2222
For bare-metal installations, the full instructions for setting up PostgreSQL, TimescaleDB, and the Promscale Extension are:
23+
24+
1) Install some necessary dependencies
25+
```bash
26+
sudo apt-get install -y wget curl gnupg2 lsb-release
27+
```
2328
1) [Add the PostgreSQL APT repository (Ubuntu)](https://www.postgresql.org/download/linux/ubuntu/)
24-
```bash
25-
echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -c -s)-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
26-
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
27-
sudo apt-get update
28-
```
29-
1) Install PostgreSQL 13 and TimescaleDB
30-
```bash
31-
sudo add-apt-repository ppa:timescale/timescaledb-ppa
32-
sudo apt-get update
33-
sudo apt-get install timescaledb-2-postgresql-13
34-
```
29+
```bash
30+
echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -c -s)-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
31+
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
32+
```
33+
1) Add the TimescaleDB APT repository
34+
```bash
35+
echo "deb [signed-by=/usr/share/keyrings/timescale.keyring] https://packagecloud.io/timescale/timescaledb/ubuntu/ $(lsb_release -c -s) main" | sudo tee /etc/apt/sources.list.d/timescaledb.list
36+
wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/timescale.keyring
37+
```
38+
1) Install PostgreSQL with TimescaleDB
39+
```bash
40+
sudo apt-get update
41+
sudo apt-get install -y timescaledb-2-postgresql-14
42+
```
3543
1) Tune the PostgreSQL installation
36-
```bash
37-
sudo timescaledb-tune --quiet --yes
38-
sudo service postgresql restart
39-
```
44+
```bash
45+
sudo timescaledb-tune --quiet --yes
46+
sudo service postgresql restart
47+
```
4048
1) Install dependencies for the PGX framework and promscale_extension
41-
```bash
42-
sudo apt-get install build-essential clang libssl-dev pkg-config libreadline-dev zlib1g-dev postgresql-server-dev-13
43-
```
49+
```bash
50+
sudo apt-get install -y build-essential clang libssl-dev pkg-config libreadline-dev zlib1g-dev postgresql-server-dev-14
51+
```
4452
1) [Install rust](https://www.rust-lang.org/tools/install).
45-
```bash
46-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
47-
source $HOME/.cargo/env
48-
```
49-
1) Install our fork of the PGX framework
50-
```bash
51-
cargo install --git https://github.com/JLockerman/pgx.git --branch timescale cargo-pgx
52-
```
53-
1) Initialize the PGX framework using the PostgreSQL 13 installation
54-
```bash
55-
cargo pgx init --pg13=/usr/lib/postgresql/13/bin/pg_config
56-
```
53+
```bash
54+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
55+
source $HOME/.cargo/env
56+
```
57+
1) Install the PGX framework
58+
```bash
59+
cargo install cargo-pgx
60+
```
61+
1) Initialize the PGX framework using the PostgreSQL 14 installation
62+
```bash
63+
cargo pgx init --pg14=/usr/lib/postgresql/14/bin/pg_config
64+
```
5765
1) Download this repo and change directory into it
58-
```bash
59-
curl -L -o "promscale_extension.zip" "https://github.com/timescale/promscale_extension/archive/refs/tags/0.2.0.zip"
60-
sudo apt-get install unzip
61-
unzip promscale_extension.zip
62-
cd promscale_extension-0.2.0
63-
```
66+
```bash
67+
curl -L -o "promscale_extension.zip" "https://github.com/timescale/promscale_extension/archive/refs/tags/0.3.0.zip"
68+
sudo apt-get install unzip
69+
unzip promscale_extension.zip
70+
cd promscale_extension-0.3.0
71+
```
6472
1) Compile and install
65-
```bash
66-
make
67-
sudo make install
68-
```
73+
```bash
74+
make
75+
sudo make install
76+
```
6977
1) Create a PostgreSQL user and database for promscale (use an appropriate password!)
70-
```bash
71-
sudo -u postgres psql -c "CREATE USER promscale SUPERUSER PASSWORD 'promscale';"
72-
sudo -u postgres psql -c "CREATE DATABASE promscale OWNER promscale;"
73-
```
78+
```bash
79+
sudo -u postgres psql -c "CREATE USER promscale SUPERUSER PASSWORD 'promscale';"
80+
sudo -u postgres psql -c "CREATE DATABASE promscale OWNER promscale;"
81+
```
7482
1) [Download and run promscale (it will install the extension in the PostgreSQL database)](https://github.com/timescale/promscale/blob/master/docs/bare-metal-promscale-stack.md#2-deploying-promscale)
75-
```bash
76-
LATEST_VERSION=$(curl -s https://api.github.com/repos/timescale/promscale/releases/latest | grep "tag_name" | cut -d'"' -f4)
77-
curl -L -o promscale "https://github.com/timescale/promscale/releases/download/${LATEST_VERSION}/promscale_${LATEST_VERSION}_Linux_x86_64"
78-
chmod +x promscale
79-
./promscale --db-name promscale --db-password promscale --db-user promscale --db-ssl-mode allow --install-extensions
80-
```
83+
```bash
84+
LATEST_VERSION=$(curl -s https://api.github.com/repos/timescale/promscale/releases/latest | grep "tag_name" | cut -d'"' -f4)
85+
curl -L -o promscale "https://github.com/timescale/promscale/releases/download/${LATEST_VERSION}/promscale_${LATEST_VERSION}_Linux_x86_64"
86+
chmod +x promscale
87+
./promscale --db-name promscale --db-password promscale --db-user promscale --db-ssl-mode allow --install-extensions
88+
```
8189

8290
This extension will be created via `CREATE EXTENSION` automatically by the Promscale connector and should not be created manually.
8391

promscale.control

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# promscale extension
22
comment = 'Promscale support functions'
3-
default_version = '0.2.0'
3+
default_version = '0.3.0'
44
module_pathname = '$libdir/promscale'
55
relocatable = false

sql/promscale--0.2.0--0.3.0.sql

Whitespace-only changes.

sql/promscale--0.3.0.sql

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
promscale--0.2.0.sql

0 commit comments

Comments
 (0)