|
160 | 160 | orioledbExtensions = orioleFilteredExtensions ++ [ ./nix/ext/orioledb.nix ]; |
161 | 161 |
|
162 | 162 | getPostgresqlPackage = version: |
163 | | - if version == "orioledb_16" |
164 | | - then pkgs.postgresql."postgresql_orioledb-16" |
165 | | - else pkgs.postgresql."postgresql_${version}"; |
| 163 | + pkgs.postgresql."postgresql_${version}"; |
166 | 164 | # Create a 'receipt' file for a given postgresql package. This is a way |
167 | 165 | # of adding a bit of metadata to the package, which can be used by other |
168 | 166 | # tools to inspect what the contents of the install are: the PSQL |
|
202 | 200 | makeOurPostgresPkgs = version: |
203 | 201 | let |
204 | 202 | postgresql = getPostgresqlPackage version; |
205 | | - extensionsToUse = if version == "orioledb-16" |
| 203 | + extensionsToUse = if (builtins.elem version ["orioledb-16" "orioledb-17"]) |
206 | 204 | then orioledbExtensions |
207 | 205 | else ourExtensions; |
208 | 206 | in map (path: pkgs.callPackage path { inherit postgresql; }) extensionsToUse; |
|
277 | 275 | postgresVersions = { |
278 | 276 | psql_15 = makePostgres "15"; |
279 | 277 | psql_16 = makePostgres "16"; |
280 | | - psql_orioledb-16 = makePostgres "orioledb-16" ; |
| 278 | + #psql_orioledb-16 = makePostgres "orioledb-16" ; |
| 279 | + psql_orioledb-17 = makePostgres "orioledb-17" ; |
281 | 280 | }; |
282 | 281 |
|
283 | 282 | # Find the active PostgreSQL version |
|
293 | 292 | }; |
294 | 293 | postgresql_15 = getPostgresqlPackage "15"; |
295 | 294 | postgresql_16 = getPostgresqlPackage "16"; |
296 | | - postgresql_orioledb-16 = getPostgresqlPackage "orioledb-16"; |
| 295 | + #postgresql_orioledb-16 = getPostgresqlPackage "orioledb-16"; |
| 296 | + postgresql_orioledb-17 = getPostgresqlPackage "orioledb-17"; |
297 | 297 | in |
298 | 298 | postgresVersions //{ |
299 | 299 | supabase-groonga = supabase-groonga; |
|
302 | 302 | # PostgreSQL versions. |
303 | 303 | psql_15 = postgresVersions.psql_15; |
304 | 304 | psql_16 = postgresVersions.psql_16; |
305 | | - psql_orioledb-16 = postgresVersions.psql_orioledb-16; |
| 305 | + #psql_orioledb-16 = postgresVersions.psql_orioledb-16; |
| 306 | + psql_orioledb-17 = postgresVersions.psql_orioledb-17; |
306 | 307 | sfcgal = sfcgal; |
307 | 308 | pg_prove = pkgs.perlPackages.TAPParserSourceHandlerpgTAP; |
308 | | - inherit postgresql_15 postgresql_16 postgresql_orioledb-16; |
| 309 | + inherit postgresql_15 postgresql_16 postgresql_orioledb-17; |
309 | 310 | postgresql_15_debug = if pkgs.stdenv.isLinux then postgresql_15.debug else null; |
310 | 311 | postgresql_16_debug = if pkgs.stdenv.isLinux then postgresql_16.debug else null; |
311 | | - postgresql_orioledb-16_debug = if pkgs.stdenv.isLinux then postgresql_orioledb-16.debug else null; |
| 312 | + postgresql_orioledb-17_debug = if pkgs.stdenv.isLinux then postgresql_orioledb-17.debug else null; |
312 | 313 | postgresql_15_src = pkgs.stdenv.mkDerivation { |
313 | 314 | pname = "postgresql-15-src"; |
314 | 315 | version = postgresql_15.version; |
|
353 | 354 | platforms = platforms.all; |
354 | 355 | }; |
355 | 356 | }; |
356 | | - postgresql_orioledb-16_src = pkgs.stdenv.mkDerivation { |
357 | | - pname = "postgresql-16-src"; |
358 | | - version = postgresql_orioledb-16.version; |
| 357 | + postgresql_orioledb-17_src = pkgs.stdenv.mkDerivation { |
| 358 | + pname = "postgresql-17-src"; |
| 359 | + version = postgresql_orioledb-17.version; |
359 | 360 |
|
360 | | - src = postgresql_16.src; |
| 361 | + src = postgresql_orioledb-17.src; |
361 | 362 |
|
362 | 363 | nativeBuildInputs = [ pkgs.bzip2 ]; |
363 | 364 |
|
|
434 | 435 | --subst-var-by 'PSQL15_BINDIR' '${basePackages.psql_15.bin}' \ |
435 | 436 | --subst-var-by 'PSQL_CONF_FILE' $out/etc/postgresql/postgresql.conf \ |
436 | 437 | --subst-var-by 'PSQL16_BINDIR' '${basePackages.psql_16.bin}' \ |
437 | | - --subst-var-by 'PSQLORIOLEDB16_BINDIR' '${basePackages.psql_orioledb-16.bin}' \ |
| 438 | + --subst-var-by 'PSQLORIOLEDB17_BINDIR' '${basePackages.psql_orioledb-17.bin}' \ |
438 | 439 | --subst-var-by 'PGSODIUM_GETKEY' '${getkeyScript}' \ |
439 | 440 | --subst-var-by 'READREPL_CONF_FILE' "$out/etc/postgresql-custom/read-replica.conf" \ |
440 | 441 | --subst-var-by 'LOGGING_CONF_FILE' "$out/etc/postgresql-custom/logging.conf" \ |
|
0 commit comments