We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96a912f commit 7e2735fCopy full SHA for 7e2735f
nix/ext/wrappers/default.nix
@@ -79,6 +79,22 @@ buildPgrxExtension_0_11_3 rec {
79
else
80
echo "Warning: $sql_file not found"
81
fi
82
+
83
+ echo "Creating wrappers.so symlinks to support pg_upgrade..."
84
+ lib_file="$out/lib/wrappers-$current_version.so"
85
86
+ if [ -f "$lib_file" ]; then
87
+ while read -r previous_version; do
88
+ if [ "$(printf '%s\n' "$previous_version" "$current_version" | sort -V | head -n1)" = "$previous_version" ] && [ "$previous_version" != "$current_version" ]; then
89
+ new_file="$out/lib/wrappers-$previous_version.so"
90
+ echo "Creating $new_file"
91
+ ln -s "$lib_file" "$new_file"
92
+ fi
93
+ done < git_tags.txt
94
+ else
95
+ echo "Warning: $lib_file not found"
96
97
98
rm git_tags.txt
99
'';
100
0 commit comments