Skip to content

Commit 6873d4d

Browse files
committed
Preparing for release
2 parents 4469824 + 445119f commit 6873d4d

File tree

7 files changed

+218
-265
lines changed

7 files changed

+218
-265
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"
24+
pgx-macros = "=0.6.0"
2525

2626
#pgx-utils = { git = "https://github.com/zombodb/pgx", branch = "develop" }
27-
pgx-utils = "0.4.5"
27+
pgx-utils = "=0.6.0"
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"
3232

3333

3434
[profile.dev]

build/build.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ BASE=$(dirname `pwd`)
2121
VERSION=$(cat $BASE/pgdd.control | grep default_version | cut -f2 -d\')
2222
LOGDIR=${BASE}/target/logs
2323
ARTIFACTDIR=${BASE}/target/artifacts
24-
PGXVERSION=0.4.5
24+
PGXVERSION=0.6.0
2525

26-
PG_VERS=("pg10" "pg11" "pg12" "pg13" "pg14")
27-
#PG_VERS=("pg14")
26+
PG_VERS=("pg11" "pg12" "pg13" "pg14" "pg15")
27+
#PG_VERS=("pg15")
2828

2929
echo $BASE
3030
echo $VERSION
@@ -35,7 +35,8 @@ echo "PGX Version: ${PGXVERSION}"
3535
mkdir -p ${LOGDIR}
3636
mkdir -p ${ARTIFACTDIR}
3737

38-
for image in `ls docker/ ` ; do
38+
39+
for image in `ls docker/ ` ; do
3940

4041
OS_DIST=$(echo ${image}|cut -f2 -d-)
4142
OS_VER=$(echo ${image}|cut -f3 -d-)

build/docker/pgdd-ubuntu-focal/Dockerfile

Lines changed: 0 additions & 46 deletions
This file was deleted.

build/docker/pgdd-ubuntu-jammy/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ RUN apt-get install -y --fix-missing \
2525
libldap-dev libkrb5-dev gettext tcl-tclreadline tcl-dev libperl-dev \
2626
libpython3-dev libprotobuf-c-dev libprotobuf-dev gcc \
2727
ruby ruby-dev rubygems \
28-
postgresql-server-dev-10 \
29-
postgresql-server-dev-11 \
30-
postgresql-server-dev-12 \
31-
postgresql-server-dev-13 \
32-
postgresql-server-dev-14 \
28+
postgresql-11 postgresql-server-dev-11 \
29+
postgresql-12 postgresql-server-dev-12 \
30+
postgresql-13 postgresql-server-dev-13 \
31+
postgresql-14 postgresql-server-dev-14 \
32+
postgresql-15 postgresql-server-dev-15 \
3333
&& apt autoremove -y
3434

3535

@@ -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/package.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Borrowed heavily from https://github.com/zombodb/zombodb/blob/master/build/package.sh
22
#
3-
# Copyright 2021 RustProof Labs
3+
# Copyright 2021-2022 RustProof Labs
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -27,8 +27,12 @@ fi
2727

2828
PKG_FORMAT=deb
2929

30-
echo " Running pgx init for ${PG_VER}"
31-
$(cargo pgx init --${PG_VER} download)
30+
PG_VER_SHORT=${PG_VER: -2}
31+
echo " Running pgx init for ${PG_VER} (${PG_VER_SHORT})"
32+
33+
mkdir -p /home/docker/.pgx/data-${PG_VER_SHORT}
34+
35+
cargo pgx init --${PG_VER} /usr/lib/postgresql/${PG_VER_SHORT}/bin/pg_config
3236

3337
echo "Changing to build dir..."
3438
cd /build

0 commit comments

Comments
 (0)