SereneDB Environment
SereneDB provides a number of functions and PRAGMA options to retrieve information on the running SereneDB instance and its environment.
Version
The version() function returns the version number of SereneDB.
Query
SELECT version() AS version;Result
version------------------------------------ PostgreSQL 18.3 (SereneDB 26.06.0)Using a PRAGMA:
Query
PRAGMA version;Result
library_version | source_id | codename-----------------+------------+--------------------- v1.6.0-dev7012 | 5212023fb8 | Development VersionPlatform
The platform information consists of the operating system, system architecture, and, optionally, the compiler.
To retrieve the platform, use the following PRAGMA:
Query
PRAGMA platform;Result
platform------------- linux_amd64The platform string combines the operating system and architecture — for example osx_arm64 on macOS with Apple Silicon, windows_amd64 on Windows on AMD64, or linux_arm64 on Ubuntu Linux on ARM64.
Meta Table Functions
SereneDB has the following built-in table functions to obtain metadata about available catalog objects:
sdb_columns(): columnssdb_constraints(): constraintssdb_databases(): lists the databases that are accessible from within the current SereneDB processsdb_dependencies(): dependencies between objectssdb_extensions(): extensionssdb_functions(): functionssdb_indexes(): secondary indexessdb_keywords(): SereneDB's keywords and reserved wordssdb_optimizers(): the available optimization rules in the SereneDB instancesdb_schemas(): schemassdb_sequences(): sequencessdb_settings(): settingssdb_tables(): base tablessdb_temporary_files(): the temporary files SereneDB has written to disk, to offload data from memorysdb_types(): data typessdb_views(): views