Skip to content

Commit 6626283

Browse files
Merge pull request #32 from rustprooflabs/bump-pgx-vers
Ugrade pgx from 0.3.3 to 0.4.2
2 parents 62c885d + a41be63 commit 6626283

File tree

7 files changed

+11
-51
lines changed

7 files changed

+11
-51
lines changed

.cargo/config

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
1-
# Auto-generated by pgx. You may edit this, or delete it to have a new one created.
2-
3-
[target.x86_64-unknown-linux-gnu]
4-
linker = ".cargo/pgx-linker-script.sh"
5-
6-
[target.aarch64-unknown-linux-gnu]
7-
linker = ".cargo/pgx-linker-script.sh"
8-
9-
[target.x86_64-unknown-linux-musl]
10-
linker = ".cargo/pgx-linker-script.sh"
11-
12-
[target.aarch64-unknown-linux-musl]
13-
linker = ".cargo/pgx-linker-script.sh"
14-
15-
[target.x86_64-apple-darwin]
16-
linker = ".cargo/pgx-linker-script.sh"
17-
18-
[target.aarch64-apple-darwin]
19-
linker = ".cargo/pgx-linker-script.sh"
20-
21-
[target.x86_64-unknown-freebsd]
22-
linker = ".cargo/pgx-linker-script.sh"
1+
[build]
2+
# Postgres symbols won't be available until runtime
3+
rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup"]

.cargo/pgx-linker-script.sh

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

ADVANCED-INSTALL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ cp ./target/artifacts/* ./standalone/
137137
## Pgx Generate graphviz
138138

139139
```bash
140-
cargo pgx schema -d
141-
dot -Goverlap=prism -Gspline=ortho -Tjpg extension.dot > pgdd.jpg
140+
cargo pgx schema -d pgdd.dot
141+
dot -Goverlap=prism -Gspline=ortho -Tjpg pgdd.dot > pgdd.jpg
142142
```
143143

144144
![pgx dependencies for pgdd](pgdd.jpg)

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2018"
55
description = "In-database (PostgreSQL) data dictionary providing database introspection via standard SQL query syntax."
66

77
[lib]
8-
crate-type = ["cdylib", "rlib"]
8+
crate-type = ["cdylib"]
99

1010
[features]
1111
default = ["pg14"]
@@ -20,15 +20,15 @@ pg_test = []
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.3.3"
24-
pgx-macros = "0.3.3"
23+
pgx = "0.4.2"
24+
pgx-macros = "0.4.2"
2525

2626
#pgx-utils = { git = "https://github.com/zombodb/pgx", branch = "develop" }
27-
pgx-utils = "0.3.3"
27+
pgx-utils = "0.4.2"
2828

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

3333

3434
[profile.dev]

build/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ 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.3.3
24+
PGXVERSION=0.4.2
2525

2626
PG_VERS=("pg10" "pg11" "pg12" "pg13" "pg14")
2727
#PG_VERS=("pg14")

pgdd.jpg

13.6 KB
Loading

src/bin/sql-generator.rs

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

0 commit comments

Comments
 (0)