You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-17 01:12:23 +02:00
PostgreSQL 18 experimental support.
Support is experimental since PostgreSQL 18 is still in development and has not released a beta, but it may be useful for testing.
This commit is contained in:
@ -497,13 +497,17 @@ sub containerBuild
|
||||
$strScript .=
|
||||
" echo \"deb http://apt.postgresql.org/pub/repos/apt/ \$(lsb_release -s -c)-pgdg main" .
|
||||
"\" >> /etc/apt/sources.list.d/pgdg.list && \\\n" .
|
||||
($strOS eq VM_U22 ?
|
||||
" echo \"deb http://apt.postgresql.org/pub/repos/apt/ \$(lsb_release -s -c)-pgdg-snapshot main" .
|
||||
" 18\" >> /etc/apt/sources.list.d/pgdg.list && \\\n" : '') .
|
||||
" wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \\\n" .
|
||||
" apt-get update && \\\n";
|
||||
}
|
||||
|
||||
$strScript .=
|
||||
" apt-get install -y --no-install-recommends postgresql-common libpq-dev && \\\n" .
|
||||
" sed -i 's/^\\#create\\_main\\_cluster.*\$/create\\_main\\_cluster \\= false/' " .
|
||||
" apt-get install -y --no-install-recommends" .
|
||||
($strOS eq VM_U22 ? " -t \$(lsb_release -s -c)-pgdg-snapshot" : '') . " postgresql-common libpq-dev && \\\n" .
|
||||
" sed -i 's/^\\#create\\_main\\_cluster.*\$/create\\_main\\_cluster \\= false/' " .
|
||||
"/etc/postgresql-common/createcluster.conf";
|
||||
}
|
||||
|
||||
@ -518,8 +522,10 @@ sub containerBuild
|
||||
}
|
||||
else
|
||||
{
|
||||
$strScript .= " apt-get install -y --no-install-recommends";
|
||||
}
|
||||
$strScript .=
|
||||
" apt-get install -y --no-install-recommends" .
|
||||
($strOS eq VM_U22 ? " -t \$(lsb_release -s -c)-pgdg-snapshot" : '');
|
||||
}
|
||||
|
||||
# Construct list of databases to install
|
||||
foreach my $strDbVersion (@{$oOS->{&VM_DB}})
|
||||
|
@ -35,6 +35,8 @@ use constant PG_VERSION_16 => '16';
|
||||
push @EXPORT, qw(PG_VERSION_16);
|
||||
use constant PG_VERSION_17 => '17';
|
||||
push @EXPORT, qw(PG_VERSION_17);
|
||||
use constant PG_VERSION_18 => '18';
|
||||
push @EXPORT, qw(PG_VERSION_18);
|
||||
|
||||
####################################################################################################################################
|
||||
# versionSupport
|
||||
@ -47,7 +49,7 @@ sub versionSupport
|
||||
my ($strOperation) = logDebugParam(__PACKAGE__ . '->versionSupport');
|
||||
|
||||
my @strySupportVersion = (PG_VERSION_95, PG_VERSION_96, PG_VERSION_10, PG_VERSION_11, PG_VERSION_12, PG_VERSION_13,
|
||||
PG_VERSION_14, PG_VERSION_15, PG_VERSION_16, PG_VERSION_17);
|
||||
PG_VERSION_14, PG_VERSION_15, PG_VERSION_16, PG_VERSION_17, PG_VERSION_18);
|
||||
|
||||
# Return from function and log return values if any
|
||||
return logDebugReturn
|
||||
|
@ -245,6 +245,7 @@ my $oyVm =
|
||||
PG_VERSION_15,
|
||||
PG_VERSION_16,
|
||||
PG_VERSION_17,
|
||||
PG_VERSION_18,
|
||||
],
|
||||
|
||||
&VM_DB_TEST =>
|
||||
@ -253,6 +254,7 @@ my $oyVm =
|
||||
PG_VERSION_11,
|
||||
PG_VERSION_12,
|
||||
PG_VERSION_17,
|
||||
PG_VERSION_18,
|
||||
],
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user