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:
duckdb_columns(): columnsduckdb_constraints(): constraintsduckdb_databases(): lists the databases that are accessible from within the current SereneDB processduckdb_dependencies(): dependencies between objectsduckdb_extensions(): extensionsduckdb_functions(): functionsduckdb_indexes(): secondary indexesduckdb_keywords(): SereneDB's keywords and reserved wordsduckdb_optimizers(): the available optimization rules in the SereneDB instanceduckdb_schemas(): schemasduckdb_sequences(): sequencesduckdb_settings(): settingsduckdb_tables(): base tablesduckdb_temporary_files(): the temporary files SereneDB has written to disk, to offload data from memoryduckdb_types(): data typesduckdb_views(): views