Skip to content

Commit ccefd0a

Browse files
committed
Merge branch 'develop' of github.com:supabase/postgres into INDATA-253
* 'develop' of github.com:supabase/postgres: feat: reduciton of closure size for plv8 (#1925)
2 parents 25ac6c9 + 7c2878c commit ccefd0a

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

ansible/tasks/setup-postgres.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
- '/home/postgres'
116116
- '/var/lib/postgresql/data'
117117
- '/var/log/postgresql'
118+
- '/etc/postgresql-custom/conf.d'
118119
loop_control:
119120
loop_var: 'pg_dir_item'
120121

@@ -137,6 +138,7 @@
137138
loop:
138139
- '/etc/postgresql'
139140
- '/etc/postgresql-custom'
141+
- '/etc/postgresql-custom/conf.d'
140142
loop_control:
141143
loop_var: 'pg_config_dir_item'
142144

ansible/vars.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ postgres_major:
1010

1111
# Full version strings for each major version
1212
postgres_release:
13-
postgresorioledb-17: "17.5.1.073-orioledb-INDATA253"
14-
postgres17: "17.7.1.001-INDATA253"
15-
postgres15: "15.14.1.052-INDATA253"
13+
postgresorioledb-17: "17.5.1.073-orioledb-plv8-1-INDATA253"
14+
postgres17: "17.6.1.052-plv8-1-INDATA253"
15+
postgres15: "15.14.1.052-plv8-1-INDATA253"
1616

1717
# Non Postgres Extensions
1818
pgbouncer_release: 1.19.0

nix/ext/plv8/default.nix

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
patchelf,
1515
buildEnv,
1616
nodejs_20,
17+
libcxx,
1718
}:
1819

1920
let
@@ -139,26 +140,26 @@ let
139140
${lib.optionalString stdenv.isDarwin ''
140141
install_name_tool -add_rpath "${v8}/lib" $out/lib/$LIB_NAME
141142
install_name_tool -add_rpath "${postgresql}/lib" $out/lib/$LIB_NAME
142-
install_name_tool -add_rpath "${stdenv.cc.cc.lib}/lib" $out/lib/$LIB_NAME
143+
install_name_tool -add_rpath "${libcxx}/lib" $out/lib/$LIB_NAME
143144
install_name_tool -change @rpath/libv8_monolith.dylib ${v8}/lib/libv8_monolith.dylib $out/lib/$LIB_NAME
144145
''}
145146
146147
${
147148
lib.optionalString (!stdenv.isDarwin) ''
148-
${patchelf}/bin/patchelf --set-rpath "${v8}/lib:${postgresql}/lib:${stdenv.cc.cc.lib}/lib" $out/lib/$LIB_NAME
149+
${patchelf}/bin/patchelf --set-rpath "${v8}/lib:${postgresql}/lib:${libcxx}/lib" $out/lib/$LIB_NAME
149150
''
150151
}
151152
else
152153
${lib.optionalString stdenv.isDarwin ''
153154
install_name_tool -add_rpath "${v8}/lib" $out/lib/$LIB_NAME
154155
install_name_tool -add_rpath "${postgresql}/lib" $out/lib/$LIB_NAME
155-
install_name_tool -add_rpath "${stdenv.cc.cc.lib}/lib" $out/lib/$LIB_NAME
156+
install_name_tool -add_rpath "${libcxx}/lib" $out/lib/$LIB_NAME
156157
install_name_tool -change @rpath/libv8_monolith.dylib ${v8}/lib/libv8_monolith.dylib $out/lib/$LIB_NAME
157158
''}
158159
159160
${
160161
lib.optionalString (!stdenv.isDarwin) ''
161-
${patchelf}/bin/patchelf --set-rpath "${v8}/lib:${postgresql}/lib:${stdenv.cc.cc.lib}/lib" $out/lib/$LIB_NAME
162+
${patchelf}/bin/patchelf --set-rpath "${v8}/lib:${postgresql}/lib:${libcxx}/lib" $out/lib/$LIB_NAME
162163
''
163164
}
164165
fi

0 commit comments

Comments
 (0)