Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ansible/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ postgres_major:

# Full version strings for each major version
postgres_release:
postgres15: "15.8.1.005"
postgres16: "16.3.1.011"
postgres15: "15.8.1.006"
postgres16: "16.3.1.012"

# Non Postgres Extensions
pgbouncer_release: "1.19.0"
Expand Down
13 changes: 3 additions & 10 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@
# use, but even if they did, keeping our own copies means that we can
# rollout new versions of these critical things easier without having to
# go through the upstream release engineering process.
ourExtensions = let
baseExtensions = [
ourExtensions = [
./nix/ext/rum.nix
./nix/ext/timescaledb.nix
./nix/ext/pgroonga.nix
Expand All @@ -148,6 +147,7 @@
./nix/ext/pg_cron.nix
./nix/ext/pgsql-http.nix
./nix/ext/pg_plan_filter.nix
./nix/ext/pg_net.nix
./nix/ext/pg_hashids.nix
./nix/ext/pgsodium.nix
./nix/ext/pg_graphql.nix
Expand All @@ -161,13 +161,7 @@
./nix/ext/supautils.nix
./nix/ext/plv8.nix
];

# Add pg_net only if NOT on macOS aarch64
pgNetExtension = if (system == "aarch64-darwin")
then []
else [ ./nix/ext/pg_net.nix ];

in baseExtensions ++ pgNetExtension;
#Where we import and build the orioledb extension, we add on our custom extensions
# plus the orioledb option
orioledbExtension = ourExtensions ++ [ ./nix/ext/orioledb.nix ];
Expand Down Expand Up @@ -467,8 +461,7 @@
--subst-var-by 'LOCALES' '${localeArchive}' \
--subst-var-by 'EXTENSION_CUSTOM_SCRIPTS_DIR' "$out/extension-custom-scripts" \
--subst-var-by 'MECAB_LIB' '${basePackages.psql_15.exts.pgroonga}/lib/groonga/plugins/tokenizers/tokenizer_mecab.so' \
--subst-var-by 'GROONGA_DIR' '${supabase-groonga}' \
--subst-var-by 'CURRENT_SYSTEM' '${system}'
--subst-var-by 'GROONGA_DIR' '${supabase-groonga}'

chmod +x $out/bin/start-postgres-server
'';
Expand Down
4 changes: 2 additions & 2 deletions nix/ext/pg_net.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

stdenv.mkDerivation rec {
pname = "pg_net";
version = "0.11.0";
version = "0.13.0";

buildInputs = [ curl postgresql ];

src = fetchFromGitHub {
owner = "supabase";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-XN441jXK1q+I/LZRNwvzbSsebXHgZ8iYsslZvcPFlAs=";
hash = "sha256-FRaTZPCJQPYAFmsJg22hYJJ0+gH1tMdDQoCQgiqEnaA=";
};

env.NIX_CFLAGS_COMPILE = "-Wno-error";
Expand Down
7 changes: 0 additions & 7 deletions nix/tools/run-server.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,12 @@ EXTENSION_CUSTOM_SCRIPTS=@EXTENSION_CUSTOM_SCRIPTS_DIR@
GROONGA=@GROONGA_DIR@
DATDIR=$(mktemp -d)
LOCALE_ARCHIVE=@LOCALES@
CURRENT_SYSTEM=@CURRENT_SYSTEM@
export LOCALE_ARCHIVE
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
echo "Current system is $CURRENT_SYSTEM"
mkdir -p "$DATDIR"
echo "NOTE: using port $PORTNO for server"
echo "NOTE: using temporary directory $DATDIR for data, which will not be removed"
Expand All @@ -63,10 +61,5 @@ pgsodium.getkey_script = '$PGSODIUM_GETKEY_SCRIPT'" \
-e "\$a\\
session_preload_libraries = 'supautils'" \
"$PSQL_CONF_FILE" > "$DATDIR/postgresql.conf"
if [ "$CURRENT_SYSTEM" = "aarch64-darwin" ]; then
echo "NOTE: using aarch64-darwin system"
sed -i '' 's/ pg_net,//g' "$DATDIR/postgresql.conf"
sed -i '' 's/ pg_net,//g' "$DATDIR/supautils.conf"
fi
export GRN_PLUGINS_DIR=$GROONGA/lib/groonga/plugins
postgres --config-file="$DATDIR/postgresql.conf" -p "$PORTNO" -D "$DATDIR" -k /tmp
Loading