All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.mfvanek.pg.testing.PostgresVersionAware Maven / Gradle / Ivy

Go to download

pg-index-health-testing is an auxiliary library that allows you to run a PostgreSQL cluster in tests.

There is a newer version: 0.14.4
Show newest version
/*
 * Copyright (c) 2019-2023. Ivan Vakhrushev and others.
 * https://github.com/mfvanek/pg-index-health
 *
 * This file is a part of "pg-index-health" - a Java library for
 * analyzing and maintaining indexes health in PostgreSQL databases.
 *
 * Licensed under the Apache License 2.0
 */

package io.github.mfvanek.pg.testing;

/**
 * Allows getting information about capabilities of concrete PostgreSQL version.
 *
 * @author Ivan Vakhrushev
 */
public interface PostgresVersionAware {

    /**
     * Checks whether The Cumulative Statistics System is supported for given PostgreSQL container.
     *
     * @return true for version 15 and higher
     * @see PostgreSQL 15: Stats Collector Gone? What’s New?
     * @since 0.7.0
     */
    boolean isCumulativeStatisticsSystemSupported();

    /**
     * Checks whether CREATE PROCEDURE command is supported for given PostgreSQL container.
     *
     * @return true for version 11 and higher
     * @since 0.7.0
     */
    boolean isProceduresSupported();

    /**
     * Checks whether CREATE PROCEDURE command supports OUT parameters.
     *
     * @return true for version 14 and higher
     * @since 0.7.0
     */
    boolean isOutParametersInProcedureSupported();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy