Skip to content

Commit 90c5e4b

Browse files
committed
fix: need to also handle timescaledb-loader
1 parent f921941 commit 90c5e4b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

nix/packages/switch-ext-version.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ writeShellApplication {
5454
# Update library symlink
5555
ln -sfnv "$EXT_LIB_TO_USE" "$EXT_WRAPPER_LIB/$EXT_NAME${postgresql.dlSuffix}"
5656
57+
# Handle timescaledb-loader symlink (specific to timescaledb)
58+
if [ "$EXT_NAME" = "timescaledb" ]; then
59+
EXT_LOADER_TO_USE="$EXT_WRAPPER_LIB/$EXT_NAME-loader-$VERSION${postgresql.dlSuffix}"
60+
if [ -f "$EXT_LOADER_TO_USE" ]; then
61+
ln -sfnv "$EXT_LOADER_TO_USE" "$EXT_WRAPPER_LIB/$EXT_NAME-loader${postgresql.dlSuffix}"
62+
fi
63+
fi
64+
5765
# Update control file
5866
EXT_WRAPPER_SHARE="$EXT_WRAPPER/share/postgresql/extension"
5967
echo "default_version = '$VERSION'" > "$EXT_WRAPPER_SHARE/$EXT_NAME.control"

0 commit comments

Comments
 (0)