Skip to content

Commit a4bc892

Browse files
Merge pull request #34 from rustprooflabs/bump-pgx-again
Working to catch up to Pgx changes for 0.6.0 and Pg15 support.
2 parents 44a828d + 6d33b8c commit a4bc892

File tree

5 files changed

+202
-208
lines changed

5 files changed

+202
-208
lines changed

ADVANCED-INSTALL.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Install `cargo-pgx` regularly (see dev steps below for non-standard install).
3636

3737

3838
```bash
39-
cargo install cargo-pgx
39+
cargo install --locked cargo-pgx
4040
```
4141

4242

@@ -117,7 +117,7 @@ CREATE EXTENSION pgdd;
117117
## Build binary packages
118118

119119
Debian/Ubuntu Bionic binaries are available for 0.4.0
120-
(first [pgx](https://github.com/zombodb/pgx) version)
120+
(first [pgx](https://github.com/tcdi/pgx) version)
121121
and later. More distributions will likely have binaries available in the future.
122122

123123

@@ -149,15 +149,15 @@ dot -Goverlap=prism -Gspline=ortho -Tjpg pgdd.dot > pgdd.jpg
149149
When working against Pgx installed from a non-tagged branch, install pgx using:
150150

151151
```bash
152-
cargo install --force --git "https://github.com/zombodb/pgx" \
152+
cargo install --locked --force --git "https://github.com/tcdi/pgx" \
153153
--branch "develop" \
154154
"cargo-pgx"
155155
```
156156

157157
Or a beta branch
158158

159159
```bash
160-
cargo install --force cargo-pgx --version 0.2.0-beta.4
160+
cargo install --locked --force cargo-pgx --version 0.2.0-beta.4
161161
```
162162

163163
Changes to `Cargo.toml` required in `[lib]` and `[dependencies]` sections.
@@ -174,16 +174,16 @@ crate-type = ["cdylib", "rlib"]
174174
```toml
175175
[dependencies]
176176

177-
pgx = { git = "https://github.com/zombodb/pgx", branch = "oh-no-type-resolution" }
178-
pgx-macros = { git = "https://github.com/zombodb/pgx", branch = "develop" }
177+
pgx = { git = "https://github.com/tcdi/pgx", branch = "oh-no-type-resolution" }
178+
pgx-macros = { git = "https://github.com/tcdi/pgx", branch = "develop" }
179179
#pgx = "0.1.21"
180180
#pgx-macros = "0.1.21"
181181

182182
# Won't be needed in final version (hopefully!)
183-
pgx-utils = { git = "https://github.com/zombodb/pgx", branch = "develop" }
183+
pgx-utils = { git = "https://github.com/tcdi/pgx", branch = "develop" }
184184

185185
[dev-dependencies]
186-
pgx-tests = { git = "https://github.com/zombodb/pgx", branch = "develop" }
186+
pgx-tests = { git = "https://github.com/tcdi/pgx", branch = "develop" }
187187
#pgx-tests = "0.1.21"
188188
```
189189

@@ -222,14 +222,14 @@ Change
222222

223223
```bash
224224
RUN /bin/bash rustup.sh -y \
225-
&& cargo install cargo-pgx
225+
&& cargo install --locked cargo-pgx
226226
```
227227

228228
To
229229

230230
```bash
231231
RUN /bin/bash rustup.sh -y \
232-
&& cargo install --force --git "https://github.com/zombodb/pgx" \
232+
&& cargo install --locked --force --git "https://github.com/tcdi/pgx" \
233233
--branch "develop" \
234234
"cargo-pgx"
235235
```

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,27 @@ description = "In-database (PostgreSQL) data dictionary providing database intro
88
crate-type = ["cdylib"]
99

1010
[features]
11-
default = ["pg14"]
12-
pg10 = ["pgx/pg10"]
11+
default = ["pg15"]
1312
pg11 = ["pgx/pg11"]
1413
pg12 = ["pgx/pg12"]
1514
pg13 = ["pgx/pg13"]
1615
pg14 = ["pgx/pg14"]
16+
pg15 = ["pgx/pg15"]
1717
pg_test = []
1818

1919
[dependencies]
2020

2121
#pgx = { git = "https://github.com/zombodb/pgx", branch = "develop" }
2222
#pgx-macros = { git = "https://github.com/zombodb/pgx", branch = "develop" }
23-
pgx = "0.4.5"
24-
pgx-macros = "0.4.5"
23+
pgx = "=0.6.0-alpha.2"
24+
pgx-macros = "=0.6.0-alpha.2"
2525

2626
#pgx-utils = { git = "https://github.com/zombodb/pgx", branch = "develop" }
27-
pgx-utils = "0.4.5"
27+
pgx-utils = "=0.6.0-alpha.2"
2828

2929
[dev-dependencies]
3030
#pgx-tests = { git = "https://github.com/zombodb/pgx", branch = "develop" }
31-
pgx-tests = "0.4.5"
31+
pgx-tests = "=0.6.0-alpha.2"
3232

3333

3434
[profile.dev]

build/docker/pgdd-ubuntu-focal/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh
4343
ENV PATH="/home/${USER}/.cargo/bin:${PATH}"
4444

4545
RUN /bin/bash rustup.sh -y \
46-
&& cargo install cargo-pgx --version ${PGXVERSION}
46+
&& cargo install --locked cargo-pgx --version ${PGXVERSION}

build/docker/pgdd-ubuntu-jammy/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh
4343
ENV PATH="/home/${USER}/.cargo/bin:${PATH}"
4444

4545
RUN /bin/bash rustup.sh -y \
46-
&& cargo install cargo-pgx --version ${PGXVERSION}
46+
&& cargo install --locked cargo-pgx --version ${PGXVERSION}

0 commit comments

Comments
 (0)