Skip to main content

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 Version

Platform​

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_amd64

The 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: