@@ -51,7 +51,7 @@ if [ "$WITH_PERL" != "true" ]; then
5151 equivs-build perl
5252fi
5353
54- curl -sL " https://github.com/zalando-pg /bg_mon/archive/$BG_MON_COMMIT .tar.gz" | tar xz
54+ curl -sL " https://github.com/CyberDem0n /bg_mon/archive/$BG_MON_COMMIT .tar.gz" | tar xz
5555curl -sL " https://github.com/zalando-pg/pg_auth_mon/archive/$PG_AUTH_MON_COMMIT .tar.gz" | tar xz
5656curl -sL " https://github.com/cybertec-postgresql/pg_permissions/archive/$PG_PERMISSIONS_COMMIT .tar.gz" | tar xz
5757curl -sL " https://github.com/zubkov-andrei/pg_profile/archive/$PG_PROFILE .tar.gz" | tar xz
@@ -78,17 +78,11 @@ for version in $DEB_PG_SUPPORTED_VERSIONS; do
7878 " postgresql-${version} -dirtyread"
7979 " postgresql-${version} -extra-window-functions"
8080 " postgresql-${version} -first-last-agg"
81- " postgresql-${version} -hll"
8281 " postgresql-${version} -hypopg"
83- " postgresql-${version} -partman"
8482 " postgresql-${version} -plproxy"
8583 " postgresql-${version} -pgaudit"
86- " postgresql-${version} -pldebugger"
87- " postgresql-${version} -pglogical"
88- " postgresql-${version} -pglogical-ticker"
8984 " postgresql-${version} -plpgsql-check"
9085 " postgresql-${version} -pg-checksums"
91- " postgresql-${version} -pgl-ddl-deploy"
9286 " postgresql-${version} -pgq-node"
9387 " postgresql-${version} -postgis-${POSTGIS_VERSION% .* } "
9488 " postgresql-${version} -postgis-${POSTGIS_VERSION% .* } -scripts"
@@ -97,10 +91,16 @@ for version in $DEB_PG_SUPPORTED_VERSIONS; do
9791 " postgresql-${version} -decoderbufs"
9892 " postgresql-${version} -pllua"
9993 " postgresql-${version} -pgvector"
100- " postgresql-${version} -roaringbitmap" )
101-
102- if [ " $version " -ge 14 ]; then
103- EXTRAS+=(" postgresql-${version} -pgfaceting" )
94+ " postgresql-${version} -roaringbitmap"
95+ " postgresql-${version} -pgfaceting" )
96+
97+ if [ " $version " != " 18" ]; then
98+ EXTRAS+=(" postgresql-${version} -hll"
99+ " postgresql-${version} -partman"
100+ " postgresql-${version} -pldebugger"
101+ " postgresql-${version} -pglogical"
102+ " postgresql-${version} -pglogical-ticker"
103+ " postgresql-${version} -pgl-ddl-deploy" )
104104 fi
105105
106106 if [ " $WITH_PERL " = " true" ]; then
@@ -109,10 +109,13 @@ for version in $DEB_PG_SUPPORTED_VERSIONS; do
109109
110110 fi
111111
112- if [ " ${TIMESCALEDB_APACHE_ONLY} " = " true" ]; then
113- EXTRAS+=(" timescaledb-2-oss-postgresql-${version} " )
114- else
115- EXTRAS+=(" timescaledb-2-postgresql-${version} " )
112+ if [ " $version " != " 18" ]; then
113+ if [ " ${TIMESCALEDB_APACHE_ONLY} " = " true" ]; then
114+ EXTRAS+=(" timescaledb-2-oss-postgresql-${version} " )
115+ else
116+ EXTRAS+=(" timescaledb-2-postgresql-${version} " )
117+ fi
118+ EXTRAS+=(" postgresql-${version} -pg-stat-kcache" )
116119 fi
117120
118121 # Install PostgreSQL binaries, contrib, plproxy and multiple pl's
@@ -123,35 +126,41 @@ for version in $DEB_PG_SUPPORTED_VERSIONS; do
123126 " postgresql-plpython3-${version} " \
124127 " postgresql-server-dev-${version} " \
125128 " postgresql-${version} -pgq3" \
126- " postgresql-${version} -pg-stat-kcache" \
127129 " ${EXTRAS[@]} "
128130
129131 # Clean up timescaledb versions except the last 5 minor versions
130- exclude_patterns=()
131- versions=$( find " /usr/lib/postgresql/$version /lib/" -name ' timescaledb-2.*.so' | sed -rn ' s/.*timescaledb-([1-9]+\.[0-9]+\.[0-9]+)\.so$/\1/p' | sort -rV)
132- latest_minor_versions=$( echo " $versions " | awk -F. ' {print $1"."$2}' | uniq | head -n 5)
133- for minor in $latest_minor_versions ; do
134- for full_version in $( echo " $versions " | grep " ^$minor " ) ; do
135- exclude_patterns+=(! -name timescaledb-" ${full_version} " .so)
136- exclude_patterns+=(! -name timescaledb-tsl-" ${full_version} " .so)
132+ if [ " $version " != " 18" ]; then
133+ exclude_patterns=()
134+ versions=$( find " /usr/lib/postgresql/$version /lib/" -name ' timescaledb-2.*.so' | sed -rn ' s/.*timescaledb-([1-9]+\.[0-9]+\.[0-9]+)\.so$/\1/p' | sort -rV)
135+ latest_minor_versions=$( echo " $versions " | awk -F. ' {print $1"."$2}' | uniq | head -n 5)
136+ for minor in $latest_minor_versions ; do
137+ for full_version in $( echo " $versions " | grep " ^$minor " ) ; do
138+ exclude_patterns+=(! -name timescaledb-" ${full_version} " .so)
139+ exclude_patterns+=(! -name timescaledb-tsl-" ${full_version} " .so)
140+ done
137141 done
138- done
139- find " /usr/lib/postgresql/ $version /lib/ " \( -name ' timescaledb-2.*.so ' -o -name ' timescaledb-tsl-2.*.so ' \) " ${exclude_patterns[@]} " -delete
142+ find " /usr/lib/postgresql/ $version /lib/ " \( -name ' timescaledb-2.*.so ' -o -name ' timescaledb-tsl-2.*.so ' \) " ${exclude_patterns[@]} " -delete
143+ fi
140144
141145 # Install 3rd party stuff
142146
143- if [ " ${TIMESCALEDB_APACHE_ONLY} " != " true" ] && [ " ${TIMESCALEDB_TOOLKIT} " = " true" ]; then
144- apt-get update
145- if [ " $( apt-cache search --names-only " ^timescaledb-toolkit-postgresql-${version} $" | wc -l) " -eq 1 ]; then
146- apt-get install " timescaledb-toolkit-postgresql-$version "
147- else
148- echo " Skipping timescaledb-toolkit-postgresql-$version as it's not found in the repository"
147+ if [ " $version " != " 18" ]; then
148+ if [ " ${TIMESCALEDB_APACHE_ONLY} " != " true" ] && [ " ${TIMESCALEDB_TOOLKIT} " = " true" ]; then
149+ apt-get update
150+ if [ " $( apt-cache search --names-only " ^timescaledb-toolkit-postgresql-${version} $" | wc -l) " -eq 1 ]; then
151+ apt-get install " timescaledb-toolkit-postgresql-$version "
152+ else
153+ echo " Skipping timescaledb-toolkit-postgresql-$version as it's not found in the repository"
154+ fi
149155 fi
150156 fi
151157
152158 EXTRA_EXTENSIONS=()
153159 if [ " $DEMO " != " true" ]; then
154- EXTRA_EXTENSIONS+=(" plprofiler" " pg_mon-${PG_MON_COMMIT} " )
160+ EXTRA_EXTENSIONS+=(" plprofiler" )
161+ if [ " $version " != " 18" ]; then
162+ EXTRA_EXTENSIONS+=(" pg_mon-${PG_MON_COMMIT} " )
163+ fi
155164 fi
156165
157166 for n in bg_mon-${BG_MON_COMMIT} \
0 commit comments