Skip to content

Commit d62075a

Browse files
committed
Revert "feat: tmp disable pg_net on macos and allow for server start on macos (#1289)"
This reverts commit 7db7e1a.
1 parent 89246e7 commit d62075a

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

flake.nix

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@
128128
# use, but even if they did, keeping our own copies means that we can
129129
# rollout new versions of these critical things easier without having to
130130
# go through the upstream release engineering process.
131-
ourExtensions = let
132-
baseExtensions = [
131+
ourExtensions = [
133132
./nix/ext/rum.nix
134133
./nix/ext/timescaledb.nix
135134
./nix/ext/pgroonga.nix
@@ -148,6 +147,7 @@
148147
./nix/ext/pg_cron.nix
149148
./nix/ext/pgsql-http.nix
150149
./nix/ext/pg_plan_filter.nix
150+
./nix/ext/pg_net.nix
151151
./nix/ext/pg_hashids.nix
152152
./nix/ext/pgsodium.nix
153153
./nix/ext/pg_graphql.nix
@@ -162,13 +162,7 @@
162162
./nix/ext/supautils.nix
163163
./nix/ext/plv8.nix
164164
];
165-
166-
# Add pg_net only if NOT on macOS aarch64
167-
pgNetExtension = if (system == "aarch64-darwin")
168-
then []
169-
else [ ./nix/ext/pg_net.nix ];
170165

171-
in baseExtensions ++ pgNetExtension;
172166
#Where we import and build the orioledb extension, we add on our custom extensions
173167
# plus the orioledb option
174168
orioledbExtension = ourExtensions ++ [ ./nix/ext/orioledb.nix ];
@@ -468,8 +462,7 @@
468462
--subst-var-by 'LOCALES' '${localeArchive}' \
469463
--subst-var-by 'EXTENSION_CUSTOM_SCRIPTS_DIR' "$out/extension-custom-scripts" \
470464
--subst-var-by 'MECAB_LIB' '${basePackages.psql_15.exts.pgroonga}/lib/groonga/plugins/tokenizers/tokenizer_mecab.so' \
471-
--subst-var-by 'GROONGA_DIR' '${supabase-groonga}' \
472-
--subst-var-by 'CURRENT_SYSTEM' '${system}'
465+
--subst-var-by 'GROONGA_DIR' '${supabase-groonga}'
473466
474467
chmod +x $out/bin/start-postgres-server
475468
'';

nix/tools/run-server.sh.in

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,12 @@ EXTENSION_CUSTOM_SCRIPTS=@EXTENSION_CUSTOM_SCRIPTS_DIR@
3232
GROONGA=@GROONGA_DIR@
3333
DATDIR=$(mktemp -d)
3434
LOCALE_ARCHIVE=@LOCALES@
35-
CURRENT_SYSTEM=@CURRENT_SYSTEM@
3635
export LOCALE_ARCHIVE
3736
export LANG=en_US.UTF-8
3837
export LANGUAGE=en_US.UTF-8
3938
export LC_ALL=en_US.UTF-8
4039
export LANG=en_US.UTF-8
4140
export LC_CTYPE=en_US.UTF-8
42-
echo "Current system is $CURRENT_SYSTEM"
4341
mkdir -p "$DATDIR"
4442
echo "NOTE: using port $PORTNO for server"
4543
echo "NOTE: using temporary directory $DATDIR for data, which will not be removed"
@@ -63,10 +61,5 @@ pgsodium.getkey_script = '$PGSODIUM_GETKEY_SCRIPT'" \
6361
-e "\$a\\
6462
session_preload_libraries = 'supautils'" \
6563
"$PSQL_CONF_FILE" > "$DATDIR/postgresql.conf"
66-
if [ "$CURRENT_SYSTEM" = "aarch64-darwin" ]; then
67-
echo "NOTE: using aarch64-darwin system"
68-
sed -i '' 's/ pg_net,//g' "$DATDIR/postgresql.conf"
69-
sed -i '' 's/ pg_net,//g' "$DATDIR/supautils.conf"
70-
fi
7164
export GRN_PLUGINS_DIR=$GROONGA/lib/groonga/plugins
7265
postgres --config-file="$DATDIR/postgresql.conf" -p "$PORTNO" -D "$DATDIR" -k /tmp

0 commit comments

Comments
 (0)