Class AutovacuumSettings


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.4.0")
    public class AutovacuumSettings
    extends Object
    AutovacuumSettings
    • Field Detail

      • JSON_PROPERTY_LOG_AUTOVACUUM_MIN_DURATION

        public static final String JSON_PROPERTY_LOG_AUTOVACUUM_MIN_DURATION
        See Also:
        Constant Field Values
      • JSON_PROPERTY_AUTOVACUUM_VACUUM_COST_LIMIT

        public static final String JSON_PROPERTY_AUTOVACUUM_VACUUM_COST_LIMIT
        See Also:
        Constant Field Values
      • JSON_PROPERTY_AUTOVACUUM_MAX_WORKERS

        public static final String JSON_PROPERTY_AUTOVACUUM_MAX_WORKERS
        See Also:
        Constant Field Values
      • JSON_PROPERTY_AUTOVACUUM_VACUUM_THRESHOLD

        public static final String JSON_PROPERTY_AUTOVACUUM_VACUUM_THRESHOLD
        See Also:
        Constant Field Values
      • JSON_PROPERTY_AUTOVACUUM_VACUUM_SCALE_FACTOR

        public static final String JSON_PROPERTY_AUTOVACUUM_VACUUM_SCALE_FACTOR
        See Also:
        Constant Field Values
      • JSON_PROPERTY_AUTOVACUUM_VACUUM_COST_DELAY

        public static final String JSON_PROPERTY_AUTOVACUUM_VACUUM_COST_DELAY
        See Also:
        Constant Field Values
      • JSON_PROPERTY_AUTOVACUUM_ANALYZE_SCALE_FACTOR

        public static final String JSON_PROPERTY_AUTOVACUUM_ANALYZE_SCALE_FACTOR
        See Also:
        Constant Field Values
      • JSON_PROPERTY_AUTOVACUUM_ANALYZE_THRESHOLD

        public static final String JSON_PROPERTY_AUTOVACUUM_ANALYZE_THRESHOLD
        See Also:
        Constant Field Values
      • JSON_PROPERTY_AUTOVACUUM_FREEZE_MAX_AGE

        public static final String JSON_PROPERTY_AUTOVACUUM_FREEZE_MAX_AGE
        See Also:
        Constant Field Values
    • Constructor Detail

      • AutovacuumSettings

        public AutovacuumSettings()
    • Method Detail

      • getLogAutovacuumMinDuration

        @Nullable
        public Integer getLogAutovacuumMinDuration()
        Causes each action executed by autovacuum to be logged if it ran for at least the specified number of milliseconds. Setting this to zero logs all autovacuum actions. Minus-one (the default) disables logging autovacuum actions. minimum: -1 maximum: 2147483647
        Returns:
        logAutovacuumMinDuration
      • setLogAutovacuumMinDuration

        public void setLogAutovacuumMinDuration​(Integer logAutovacuumMinDuration)
      • getAutovacuumVacuumCostLimit

        @Nullable
        public Integer getAutovacuumVacuumCostLimit()
        Specifies the cost limit value that will be used in automatic VACUUM operations. If -1 is specified (which is the default), the regular vacuum_cost_limit value will be used. minimum: -1 maximum: 10000
        Returns:
        autovacuumVacuumCostLimit
      • setAutovacuumVacuumCostLimit

        public void setAutovacuumVacuumCostLimit​(Integer autovacuumVacuumCostLimit)
      • getAutovacuumMaxWorkers

        @Nullable
        public Integer getAutovacuumMaxWorkers()
        Specifies the maximum number of autovacuum processes (other than the autovacuum launcher) that may be running at any one time. The default is three. This parameter can only be set at server start. minimum: 1 maximum: 20
        Returns:
        autovacuumMaxWorkers
      • setAutovacuumMaxWorkers

        public void setAutovacuumMaxWorkers​(Integer autovacuumMaxWorkers)
      • getAutovacuumVacuumThreshold

        @Nullable
        public Integer getAutovacuumVacuumThreshold()
        Specifies the minimum number of updated or deleted tuples needed to trigger a VACUUM in any one table. The default is 50 tuples minimum: 0 maximum: 2147483647
        Returns:
        autovacuumVacuumThreshold
      • setAutovacuumVacuumThreshold

        public void setAutovacuumVacuumThreshold​(Integer autovacuumVacuumThreshold)
      • getAutovacuumNaptime

        @Nullable
        public Integer getAutovacuumNaptime()
        Specifies the minimum delay between autovacuum runs on any given database. The delay is measured in seconds, and the default is one minute minimum: 1 maximum: 86400
        Returns:
        autovacuumNaptime
      • setAutovacuumNaptime

        public void setAutovacuumNaptime​(Integer autovacuumNaptime)
      • getAutovacuumVacuumScaleFactor

        @Nullable
        public BigDecimal getAutovacuumVacuumScaleFactor()
        Specifies a fraction of the table size to add to autovacuum_vacuum_threshold when deciding whether to trigger a VACUUM. The default is 0.2 (20% of table size) minimum: 0.0 maximum: 1.0
        Returns:
        autovacuumVacuumScaleFactor
      • setAutovacuumVacuumScaleFactor

        public void setAutovacuumVacuumScaleFactor​(BigDecimal autovacuumVacuumScaleFactor)
      • getAutovacuumVacuumCostDelay

        @Nullable
        public Integer getAutovacuumVacuumCostDelay()
        Specifies the cost delay value that will be used in automatic VACUUM operations. If -1 is specified, the regular vacuum_cost_delay value will be used. The default value is 20 milliseconds minimum: -1 maximum: 100
        Returns:
        autovacuumVacuumCostDelay
      • setAutovacuumVacuumCostDelay

        public void setAutovacuumVacuumCostDelay​(Integer autovacuumVacuumCostDelay)
      • getAutovacuumAnalyzeScaleFactor

        @Nullable
        public BigDecimal getAutovacuumAnalyzeScaleFactor()
        Specifies a fraction of the table size to add to autovacuum_analyze_threshold when deciding whether to trigger an ANALYZE. The default is 0.2 (20% of table size) minimum: 0.0 maximum: 1.0
        Returns:
        autovacuumAnalyzeScaleFactor
      • setAutovacuumAnalyzeScaleFactor

        public void setAutovacuumAnalyzeScaleFactor​(BigDecimal autovacuumAnalyzeScaleFactor)
      • getAutovacuumAnalyzeThreshold

        @Nullable
        public Integer getAutovacuumAnalyzeThreshold()
        Specifies the minimum number of inserted, updated or deleted tuples needed to trigger an ANALYZE in any one table. The default is 50 tuples. minimum: 0 maximum: 2147483647
        Returns:
        autovacuumAnalyzeThreshold
      • setAutovacuumAnalyzeThreshold

        public void setAutovacuumAnalyzeThreshold​(Integer autovacuumAnalyzeThreshold)
      • getAutovacuumFreezeMaxAge

        @Nullable
        public Integer getAutovacuumFreezeMaxAge()
        Specifies the maximum age (in transactions) that a table's pg_class.relfrozenxid field can attain before a VACUUM operation is forced to prevent transaction ID wraparound within the table. Note that the system will launch autovacuum processes to prevent wraparound even when autovacuum is otherwise disabled. This parameter will cause the server to be restarted. minimum: 200000000 maximum: 1500000000
        Returns:
        autovacuumFreezeMaxAge
      • setAutovacuumFreezeMaxAge

        public void setAutovacuumFreezeMaxAge​(Integer autovacuumFreezeMaxAge)
      • equals

        public boolean equals​(Object o)
        Return true if this Autovacuum_settings object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toUrlQueryString

        public String toUrlQueryString()
        Convert the instance into URL query string.
        Returns:
        URL query string
      • toUrlQueryString

        public String toUrlQueryString​(String prefix)
        Convert the instance into URL query string.
        Parameters:
        prefix - prefix of the query string
        Returns:
        URL query string