Commit 54d80f6
Sam/oriole17 (supabase#1298)
* feat: build and flake check of pg 16.3 with exts/wrappers
* pg_partman test 15/16 compat
* merge sql interface test
* tests: build test and cache both versions
* chore: run checks individually
* pg 15 and 16 packer/ansible/ghactions (supabase#1268)
* fix: reformat ec2 cleanup commands (supabase#1267)
Co-authored-by: Sam Rose <[email protected]>
* feat: build and flake check of pg 16.3 with exts/wrappers
* pg_partman test 15/16 compat
* merge sql interface test
* tests: build test and cache both versions
* chore: run checks individually
* feat: realease 15 and 16 to staging
* chore: update versions
* chore: make yq available
* chore: run yq from nix
* chore: more setup for staging AMI
* fix: yq usage
* chore: shell vars
* fix: When --init none is used, only users who can elevate to sudo privileges can run Nix
* fix: no -i
* fix: quote correction
* fix: newline extra quotes
* fix: no need for pg major version on packer
* fix: postgresql_major
* fix: ql
* fix: no ansible args in stage to invocation
* fix: unique val
* fix: adjustments to build scripts
* chore: env var handling
* fix: bump to build
* chore: set up more required vars
* chore: bump var
* feat: pg 16 debug symbols
* feat: matrix pg versions build on testinfra
* feat: matrix on Test Database
* chore: running nix in the right context
* feat: just use existing Dockerfile + pg version
* chore: refer to var
* fix: read name without including quotes
* chore: try format function
* fix: strip quotes from version number
* chore: env var
* fix: pg client
* fix
* fix: try to use psql from our own corresponding pkg
* fix: try psql from ppa
* fix: dbmate per pg version
* build dbmate and then install client
* fix: account for architecture
* chore: limit changes detection migrations/schema.sql
* missing docker compose call
* ore: drop tests while investigating
* test: try on pg15 only
* chore: schema needs update
* chore: now run on all versions in matrix
* test: trying a version of schema per major pg version as there are type diffs
---------
Co-authored-by: Sam Rose <[email protected]>
Co-authored-by: Oliver Rice <[email protected]>
* chore: rm dead code
* chore: resolve versions from ansible/vars.yml instead of packer file
create a matrix build for 15 16 (or how ever many versions there are)
* feat: WIP orioledb 16
* feat: intro into CI building psql16 bundle oriole version
* test: working through build compat for oriole
* working orioledb build
* fix: update value
* chore: cut staging only release for oriole16
* narrow down to just oriole staging ami here
* fix: make sure name lines up with gh action convention
* fix: get correct naming convention in here too for oriole bundle
* chore: bump to cut release
* fix: make sure src and debug builds available for oriole too
* chore: bump to staging release
* fix: when oriole16 rm timescale from supautils conf
* fix: also remove from postgresql conf
* fix: find all instances and remove in this condition for tiemscaledb
* fix: maybe broke pgsodium with too many spaces
* fix: create a symlink for missing path
* fix: try a more universal way to deactivate pgsodium at this stage
* chore: when oriole16 rm timescale plv8 postgis pgvector pgrouting
* fix: more handling of oriole16 differences
* chore more oriole16 handling
* fix: refine sed regex
* fix: also cond rm actual files
* fix: correct dir
* chore: bump to release
* feat: parse and handle oropledb-16 in start-server
* feat: start-client for oriole16
* wip for orioledb push to build on linux
* fix: running server
* chore: consolidate nix code that handles building of postgres versions
* fix: update name for bundle
* chore: small cleanup
* chore: bump version release
* chore: cleanup names
* chore: correct names
* fix: var name
* fix: one more var name
* chore: bump to release
* fix: reformatting metadata for clikchouse dep as git was not able to fetch
* feat: wip refactor to pg 17 for orioledb
* feat: working orioledb-17
* fix: increase role duration to avoid expiration
* fix: correct version
* fix: clickhouse needs git in build inputs
* fix: install and then remove git for clickhouse dep
* fix: correct rules for version
* fix: db_user_namespace was deprecated starting in pg 16.4 and higher
* apply fix for wrappers build, deactivate ext in unit test
* chore: deactivate more tests due to deactivated extensions
* fix: also remove from sql file
* fix: regex
* fix: also remove ref here
* fix: graphql_public schema too
* chore: correct dir
* chore: staging release
* feat: re-introduce wal2json rum and pgvector
* fix: also restore pgvector in start-server
* chore: bump staging release
* feat: oriole specific default settings
* feat: use icu for locales only if building orioledb
* fix: need var in stage 1 too
* fix: settings must be in db init
* fix: ansible args
* fix: PostgreSQL uses ICU for all locale-related operations, so we don't need to specify the collation and character type settings separately.
* chore: add a migration for orioledb activation by default
* feat: turn on oriole if oriole ext exists
* test: conditional on test for orioledb
* fix: salt changed repo and method for adding apt package
* fix: udpate salt minion setup
* fix: silent skip if oriole not in the install
* test: check if oriole is available and if so then enable
* chore: build and cache src and debug pkgs as well
* fix: tmp supress build of src and debug
* chore: tmp disable src and debug
* fix: activate oriole first in the oriole context
* fix: pgroonga build on macos
* fix: restore flake check for now
* fixing flake check for darwin + passing check until pg_net
* fix: start-server macos
* fix: src yq from apt
* fix: all instances yq
* fix: jq invoke
* fix: nix profile install
* fix: nix run
* fix: sudo nix run
* chore: cut staging release
* chore: rm debugging
* fix: still need CURRENT_SYSTEM
* test: re-introduce flake checks for 15 and 16
* chore: bump versions of patched pg for oriole to 17_4 and ext to beta6
* chore: bump var to release ami
* chore: break down into functions
* fix: skip x86 darwin for oriole nix builds
* chore: cleanup repo for final review, rebase and merge
* fix: try to properly init db in non oriole context
* chore: restore installation of debug and src for all versions`
* chore: newline
* chore: cleaning up and restoring missing code
* chore: cleanup
* chore: fix gh action conditonal for oriole
* fix: filter orioledb-17 from test on read
---------
Co-authored-by: Oliver Rice <[email protected]>1 parent d8e6a17 commit 54d80f6
File tree
27 files changed
+525
-202
lines changed- .github/workflows
- ansible
- files
- tasks
- docker/nix
- ebssurrogate
- files/unit-tests
- scripts
- migrations
- db/migrations
- tests
- nix
- ext
- wrappers
- overlays
- postgresql
- tools
27 files changed
+525
-202
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| |||
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
24 | | - | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
28 | | - | |
| 25 | + | |
29 | 26 | | |
30 | | - | |
31 | 27 | | |
32 | 28 | | |
33 | 29 | | |
| |||
45 | 41 | | |
46 | 42 | | |
47 | 43 | | |
48 | | - | |
49 | 44 | | |
50 | 45 | | |
51 | 46 | | |
52 | 47 | | |
53 | 48 | | |
54 | | - | |
55 | | - | |
56 | 49 | | |
57 | 50 | | |
58 | | - | |
59 | 51 | | |
60 | 52 | | |
61 | 53 | | |
62 | 54 | | |
63 | | - | |
64 | 55 | | |
65 | 56 | | |
66 | 57 | | |
67 | 58 | | |
68 | 59 | | |
69 | | - | |
70 | 60 | | |
71 | | - | |
72 | 61 | | |
73 | | - | |
74 | 62 | | |
75 | | - | |
76 | 63 | | |
77 | 64 | | |
78 | 65 | | |
79 | 66 | | |
80 | 67 | | |
81 | 68 | | |
82 | 69 | | |
83 | | - | |
84 | | - | |
85 | 70 | | |
86 | 71 | | |
87 | 72 | | |
88 | | - | |
| 73 | + | |
89 | 74 | | |
90 | 75 | | |
91 | 76 | | |
92 | 77 | | |
93 | | - | |
| 78 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 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 | + | |
3 | 41 | | |
4 | | - | |
| 42 | + | |
5 | 43 | | |
6 | 44 | | |
7 | 45 | | |
8 | | - | |
| 46 | + | |
9 | 47 | | |
| 48 | + | |
| 49 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
224 | 250 | | |
225 | 251 | | |
226 | 252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 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 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
7 | 53 | | |
8 | 54 | | |
9 | 55 | | |
10 | 56 | | |
11 | | - | |
12 | 57 | | |
13 | 58 | | |
14 | 59 | | |
| |||
199 | 244 | | |
200 | 245 | | |
201 | 246 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
209 | 260 | | |
210 | 261 | | |
211 | 262 | | |
| |||
240 | 291 | | |
241 | 292 | | |
242 | 293 | | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
243 | 302 | | |
244 | 303 | | |
245 | 304 | | |
246 | 305 | | |
247 | | - | |
| 306 | + | |
0 commit comments