Commit d584651
feat: support multiple versions of the pg-graphql extension (#1761)
* feat(pg_graphql): build multiple versions of the pg_graphql extension
Build multiple versions of the pg_graphql extension on different PostgreSQL versions.
Add test for the extensions and their upgrade on PostgreSQL 15 and 17.
* feat(cargo-pgrx): build extensions with specified Rust version
This change allows developers to target specific Rust versions for
building extensions. It implements support for building cargo extensions
and `cargo-pgrx` using the specified Rust version.
* Build pg_graphql 1.4.2 using pgrx 0.10.2
* Build pg_graphql 1.4.1 using pgrx 0.10.2
* Build pg_graphql 1.2.3 using pgrx 0.9.7
* Build pg_graphql 1.2.2 using pgrx 0.9.5
* Build pg_graphql 1.2.0 using pgx 0.7.1
* Build pg_graphql 1.1.0 using pgx 0.6.1
* Refactoring and build pg_graphql 1.0.2 using pgx 0.6.1
* chore: add release suffix for testing
* fix: conditional for using this linking only with macos
* fix: bindgen
* fix: apply bindgen fix for aarch64 to versions up to 1.5.1
The issue we face when building pg_graphql on aarch64 is:
`Invalid or unknown abi 16 for function "_ZGVnN4vv_atan2f"`
It has been fixed in bindgen 0.11.3.
* chore: use default nixos test to test pg_graphql extension
* fix(pg_graphql): migration script from 1.5.1-mergeless to 1.5.4
Add special case handling for 1.5.1-mergeless to 1.5.4 upgrade path.
Also replace CREATE FUNCTION with CREATE OR REPLACE FUNCTION to prevent conflicts
in migration scripts and the same for event triggers.
* fix: do not apply bindgen fix for version 1.5.4
pg_graphql 1.5.4 uses pgrx 0.11.3 which fixed the ABI issues on aarch64-linux.
* feat: run pg_regress tests during build
We don't recompile the extension using pgx with dev/debug symbols, but
we do run the pg_regress tests to ensure everything is working
correctly.
* chore: bump to release
---------
Co-authored-by: Sam Rose <[email protected]>1 parent 4d7f384 commit d584651
File tree
16 files changed
+12417
-68
lines changed- ansible
- nix
- cargo-pgrx
- ext
- pg_graphql
- tests
- overlays
- packages
16 files changed
+12417
-68
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| |||
87 | 91 | | |
88 | 92 | | |
89 | 93 | | |
| 94 | + | |
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
93 | 98 | | |
| 99 | + | |
94 | 100 | | |
95 | | - | |
| 101 | + | |
96 | 102 | | |
97 | 103 | | |
98 | 104 | | |
| |||
127 | 133 | | |
128 | 134 | | |
129 | 135 | | |
130 | | - | |
| 136 | + | |
131 | 137 | | |
132 | 138 | | |
133 | 139 | | |
| |||
138 | 144 | | |
139 | 145 | | |
140 | 146 | | |
141 | | - | |
| 147 | + | |
| 148 | + | |
142 | 149 | | |
143 | | - | |
| 150 | + | |
144 | 151 | | |
145 | 152 | | |
146 | 153 | | |
| |||
160 | 167 | | |
161 | 168 | | |
162 | 169 | | |
163 | | - | |
| 170 | + | |
164 | 171 | | |
165 | 172 | | |
166 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | | - | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
2 | 42 | | |
3 | 43 | | |
4 | 44 | | |
| |||
57 | 97 | | |
58 | 98 | | |
59 | 99 | | |
60 | | - | |
61 | 100 | | |
This file was deleted.
0 commit comments