Source
void zbx_dbconn_tsdb_extract_compressed_chunk_flags(zbx_dbconn_t *db, struct zbx_db_version_info_t *version_info)
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
/******************************************************************************
* *
* Purpose: For PostgreSQL, MySQL and MariaDB: *
* stoires DBMS version as integer: MMmmuu *
* M = major version part *
* m = minor version part *
* u = patch version part *
* *
* Example: if the original DB version was 1.2.34 then 10234 is set *
* *
******************************************************************************/
static zbx_uint32_t ZBX_DB_SVERSION = ZBX_DBVERSION_UNDEFINED;
zbx_uint32_t db_get_server_version(void)
{
return ZBX_DB_SVERSION;
}
static int ZBX_TIMESCALE_COMPRESSION_AVAILABLE = OFF;
static int ZBX_TSDB_VERSION = -1;
static int ZBX_MARIADB_SFORK = OFF;
/*********************************************************************************
* *
* Purpose: determine if a vendor database(MySQL, MariaDB, PostgreSQL, *
* ElasticDB) version satisfies Zabbix requirements *
* *
* Parameters: database - [IN] database name *
* current_version - [IN] detected numeric version *
* min_version - [IN] minimum required numeric version *
* max_version - [IN] maximum required numeric version *
* min_supported_version - [IN] minimum supported numeric version *
* *
* Return value: resulting status flag *
* *
*********************************************************************************/