-
-
Notifications
You must be signed in to change notification settings - Fork 189
Sam/oriole17 #1298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Sam/oriole17 #1298
Changes from all commits
Commits
Show all changes
121 commits
Select commit
Hold shift + click to select a range
cdc6452
feat: build and flake check of pg 16.3 with exts/wrappers
samrose 91ec362
pg_partman test 15/16 compat
olirice 0321dfa
merge sql interface test
olirice aa5dd9a
tests: build test and cache both versions
samrose 65fdc5d
chore: run checks individually
samrose f10881b
pg 15 and 16 packer/ansible/ghactions (#1268)
samrose 7f7730e
chore: rm dead code
samrose 3454b62
chore: resolve versions from ansible/vars.yml instead of packer file
samrose d576b01
feat: WIP orioledb 16
samrose ce43530
feat: intro into CI building psql16 bundle oriole version
samrose b6fdd11
test: working through build compat for oriole
samrose 859cbca
working orioledb build
samrose a4b4998
fix: update value
samrose 6336dba
Merge branch 'develop' into sam/oriole16
samrose 8c13a58
chore: cut staging only release for oriole16
samrose 07117e3
narrow down to just oriole staging ami here
samrose 9f4b869
Merge branch 'develop' into sam/oriole16
samrose 2ea1e90
fix: make sure name lines up with gh action convention
samrose c7f68df
fix: get correct naming convention in here too for oriole bundle
samrose 870f591
chore: bump to cut release
samrose d483a07
fix: make sure src and debug builds available for oriole too
samrose 5e69b00
chore: bump to staging release
samrose b62e770
fix: when oriole16 rm timescale from supautils conf
samrose 889dc70
fix: also remove from postgresql conf
samrose a67d8e1
fix: find all instances and remove in this condition for tiemscaledb
samrose 67382a6
fix: maybe broke pgsodium with too many spaces
samrose c08b661
fix: create a symlink for missing path
samrose 59b44b6
fix: try a more universal way to deactivate pgsodium at this stage
samrose f961371
chore: when oriole16 rm timescale plv8 postgis pgvector pgrouting
samrose a8f1a6b
fix: more handling of oriole16 differences
samrose c35fa68
chore more oriole16 handling
samrose d1e06d4
fix: refine sed regex
samrose 304aa68
fix: also cond rm actual files
samrose 55b9763
fix: correct dir
samrose 292327e
chore: bump to release
samrose 32163be
feat: parse and handle oropledb-16 in start-server
samrose e1c199c
feat: start-client for oriole16
samrose 6a5648b
wip for orioledb push to build on linux
samrose 049010a
fix: running server
samrose c2e2801
chore: consolidate nix code that handles building of postgres versions
samrose 1cd2063
fix: update name for bundle
samrose 0e23e7d
chore: small cleanup
samrose f6cbbe7
Merge branch 'develop' into sam/oriole16
samrose 9d48e50
chore: bump version release
samrose 25e1b3b
Merge branch 'develop' into sam/oriole16
samrose fed90a0
chore: cleanup names
samrose 9b078d0
chore: correct names
samrose bc2b4cc
fix: var name
samrose 12dc397
fix: one more var name
samrose 73944e1
chore: bump to release
samrose 9ae9c9f
fix: reformatting metadata for clikchouse dep as git was not able to …
samrose fa05170
feat: wip refactor to pg 17 for orioledb
samrose 0e283e6
feat: working orioledb-17
samrose 051c9fd
fix: increase role duration to avoid expiration
samrose 33b8948
fix: correct version
samrose 230c7c7
fix: clickhouse needs git in build inputs
samrose ee4ce32
fix: install and then remove git for clickhouse dep
samrose 2ccb5ac
fix: correct rules for version
samrose f9cadcc
fix: db_user_namespace was deprecated starting in pg 16.4 and higher
samrose 1c9c1f1
apply fix for wrappers build, deactivate ext in unit test
samrose d02197e
Merge branch 'develop' into sam/oriole17
samrose 2f0186f
chore: deactivate more tests due to deactivated extensions
samrose 4ac77c4
fix: also remove from sql file
samrose 61434e0
fix: regex
samrose 24b7442
fix: also remove ref here
samrose 9ec0bfa
fix: graphql_public schema too
samrose 37d6e49
chore: correct dir
samrose 45de660
chore: staging release
samrose dd649cc
feat: re-introduce wal2json rum and pgvector
samrose a1efc9b
fix: also restore pgvector in start-server
samrose feec1e5
chore: bump staging release
samrose 1444882
feat: oriole specific default settings
samrose 2fb7958
feat: use icu for locales only if building orioledb
samrose 2ff3c01
fix: need var in stage 1 too
samrose 18d9116
fix: settings must be in db init
samrose 1d6c728
fix: ansible args
samrose 376f8d9
fix: PostgreSQL uses ICU for all locale-related operations, so we don…
samrose c2312c3
chore: add a migration for orioledb activation by default
samrose cbcb962
feat: turn on oriole if oriole ext exists
samrose c11d2e9
test: conditional on test for orioledb
samrose 5bc0e33
fix: salt changed repo and method for adding apt package
samrose a822ca4
fix: udpate salt minion setup
samrose 5af2b29
Merge branch 'develop' into sam/oriole17
samrose 2b3df4b
fix: silent skip if oriole not in the install
samrose 1f955df
test: check if oriole is available and if so then enable
samrose b55c025
Merge branch 'develop' into sam/oriole17
samrose 8ff1419
chore: build and cache src and debug pkgs as well
samrose c9da3ec
fix: tmp supress build of src and debug
samrose 78491e2
chore: tmp disable src and debug
samrose 41f291e
fix: activate oriole first in the oriole context
samrose c1962cb
fix: pgroonga build on macos
samrose d58f7e6
fix: restore flake check for now
samrose 9abe2c9
fixing flake check for darwin + passing check until pg_net
samrose e510e12
fix: start-server macos
samrose 8cfa69c
fix: src yq from apt
samrose bdf3122
fix: all instances yq
samrose a1b483f
fix: jq invoke
samrose 53b5f3f
fix: nix profile install
samrose ec022a1
fix: nix run
samrose 18661bf
fix: sudo nix run
samrose 39827b2
chore: cut staging release
samrose 7dd46e9
chore: rm debugging
samrose b26114d
Merge branch 'develop' into sam/oriole17
samrose 4775b44
fix: still need CURRENT_SYSTEM
samrose f075b02
test: re-introduce flake checks for 15 and 16
samrose d29bd9c
chore: bump versions of patched pg for oriole to 17_4 and ext to beta6
samrose 9a2d617
Merge branch 'develop' into sam/oriole17
samrose a5ca7b2
chore: bump var to release ami
samrose 3216091
chore: break down into functions
samrose 4281edb
Merge branch 'develop' into sam/oriole17
samrose 84d78d6
fix: skip x86 darwin for oriole nix builds
samrose a0f32b4
chore: cleanup repo for final review, rebase and merge
samrose af742b1
fix: try to properly init db in non oriole context
samrose 4a29ae0
Merge branch 'develop' into sam/oriole17
samrose 25da7c3
chore: restore installation of debug and src for all versions`
samrose adc0db8
chore: newline
samrose 0dca87f
Merge branch 'develop' into sam/oriole17-backup
samrose cb075b7
chore: cleaning up and restoring missing code
samrose 9260c02
chore: cleanup
samrose cdbc06f
chore: fix gh action conditonal for oriole
samrose b04925c
fix: filter orioledb-17 from test on read
samrose File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,4 @@ result* | |
.idea/ | ||
.vscode/ | ||
|
||
db | ||
db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,49 @@ | ||
#!/bin/bash | ||
|
||
check_orioledb_enabled() { | ||
local pg_conf="/etc/postgresql/postgresql.conf" | ||
if [ ! -f "$pg_conf" ]; then | ||
return 0 | ||
fi | ||
grep "^shared_preload_libraries" "$pg_conf" | grep -c "orioledb" || return 0 | ||
} | ||
|
||
get_shared_buffers() { | ||
local opt_conf="/etc/postgresql-custom/generated-optimizations.conf" | ||
if [ ! -f "$opt_conf" ]; then | ||
return 0 | ||
fi | ||
grep "^shared_buffers = " "$opt_conf" | cut -d "=" -f2 | tr -d ' ' || return 0 | ||
} | ||
|
||
update_orioledb_buffers() { | ||
local pg_conf="/etc/postgresql/postgresql.conf" | ||
local value="$1" | ||
if grep -q "^orioledb.main_buffers = " "$pg_conf"; then | ||
sed -i "s/^orioledb.main_buffers = .*/orioledb.main_buffers = $value/" "$pg_conf" | ||
else | ||
echo "orioledb.main_buffers = $value" >> "$pg_conf" | ||
fi | ||
} | ||
|
||
main() { | ||
local has_orioledb=$(check_orioledb_enabled) | ||
if [ "$has_orioledb" -lt 1 ]; then | ||
return 0 | ||
fi | ||
local shared_buffers_value=$(get_shared_buffers) | ||
if [ ! -z "$shared_buffers_value" ]; then | ||
update_orioledb_buffers "$shared_buffers_value" | ||
fi | ||
} | ||
|
||
# Initial locale setup | ||
if [ $(cat /etc/locale.gen | grep -c en_US.UTF-8) -eq 0 ]; then | ||
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen | ||
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen | ||
fi | ||
|
||
if [ $(locale -a | grep -c en_US.utf8) -eq 0 ]; then | ||
locale-gen | ||
locale-gen | ||
fi | ||
|
||
main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.