@@ -70,6 +70,7 @@ public abstract class AbstractConfig {
7070 public final boolean workloadMonitoringWarmup ;
7171
7272 public final int progressReportBase = 100 ;
73+ public final String postgresImageVariant ;
7374
7475
7576 protected AbstractConfig ( String scenario , String system , Properties properties ) {
@@ -103,6 +104,7 @@ protected AbstractConfig( String scenario, String system, Properties properties
103104 workloadMonitoringExecutingWorkload = false ;
104105 workloadMonitoringLoadingData = true ;
105106 workloadMonitoringWarmup = true ;
107+ postgresImageVariant = getStringPropertyOrDefault ( properties , "postgresImageVariant" , "pgvector & PostGIS" );
106108
107109 // This is hacky but ensures that VersionSwitch is initialized when running tasks from CLI.
108110 PolyphenyVersionSwitch .initialize ( this );
@@ -150,6 +152,7 @@ protected AbstractConfig( String scenario, String system, Map<String, String> cd
150152 workloadMonitoringExecutingWorkload = Boolean .parseBoolean ( cdlGetOrDefault ( cdl , "workloadMonitoring" , "false" ) );
151153 workloadMonitoringLoadingData = Boolean .parseBoolean ( cdlGetOrDefault ( cdl , "workloadMonitoringLoadingData" , "false" ) );
152154 workloadMonitoringWarmup = Boolean .parseBoolean ( cdlGetOrDefault ( cdl , "workloadMonitoringWarmup" , "true" ) );
155+ postgresImageVariant = cdlGetOrDefault ( cdl , "postgresImageVariant" , "pgvector & PostGIS" );
153156 }
154157
155158
@@ -171,6 +174,12 @@ protected String getStringProperty( Properties properties, String name ) {
171174 }
172175
173176
177+ protected String getStringPropertyOrDefault ( Properties properties , String name , String defaultName ) {
178+ String str = getProperty ( properties , name );
179+ return str == null ? defaultName : str ;
180+ }
181+
182+
174183 protected int getIntProperty ( Properties properties , String name ) {
175184 String str = getProperty ( properties , name );
176185 if ( str == null ) {
0 commit comments