The SYSTEM Namespace
CLIENT_ADDRESS-
For TCP, this is the IP address.For XNET, the local process ID.For all other protocols this variable is
NULL. CLIENT_HOST-
The wire protocol host name of remote client.Value is returned for all supported protocols.
CLIENT_PID-
Process ID of remote client application.
CLIENT_PROCESS-
Process name of remote client application.
CURRENT_ROLE-
Same as global [fblangref50-contextvars-current-role] variable.
CURRENT_USER-
Same as global [fblangref50-contextvars-current-user] variable.
DB_FILE_ID-
Unique filesystem-level ID of the current database.
DB_GUID-
GUID of the current database.
DB_NAME-
Canonical name of current database;either the full path to the database or — if connecting via the path is disallowed — its alias.
DECFLOAT_ROUND-
Rounding mode of the current connection used in operations with
DECFLOATvalues.See alsoSET DECFLOAT. DECFLOAT_TRAPS-
Exceptional conditions for the current connection in operations with
DECFLOATvalues that cause a trap.See alsoSET DECFLOAT. EFFECTIVE_USER-
Effective user at the point
RDB$GET_CONTEXTis called;indicates privileges of which user is currently used to execute a function, procedure, trigger. ENGINE_VERSION-
The Firebird engine (server) version.
EXT_CONN_POOL_ACTIVE_COUNT-
Count of active connections associated with the external connection pool.
EXT_CONN_POOL_IDLE_COUNT-
Count of currently inactive connections available in the connection pool.
EXT_CONN_POOL_LIFETIME-
External connection pool idle connection lifetime, in seconds.
EXT_CONN_POOL_SIZE-
External connection pool size.
GLOBAL_CN-
Most current value of global Commit Number counter.
ISOLATION_LEVEL-
The isolation level of the current transaction:
'READ COMMITTED','SNAPSHOT'or'CONSISTENCY'. LOCK_TIMEOUT-
Lock timeout of the current transaction.
NETWORK_PROTOCOL-
The protocol used for the connection:
'TCPv4','TCPv6','XNET'orNULL. PARALLEL_WORKERS-
The maximum number of parallel workers of the connection.
READ_ONLY-
Returns
'TRUE'if current transaction is read-only and'FALSE'otherwise. REPLICA_MODE-
Replica mode of the database:
'READ-ONLY','READ-WRITE'andNULL. REPLICATION_SEQUENCE-
Current replication sequence (number of the latest segment written to the replication journal).
SESSION_ID-
Same as global [fblangref50-contextvars-current-connection] variable.
SESSION_IDLE_TIMEOUT-
Connection-level idle timeout, or
0if no timeout was set.When0is reported the databaseConnectionIdleTimeoutfromdatabases.conforfirebird.confapplies. SESSION_TIMEZONE-
Current session time zone.
SNAPSHOT_NUMBER-
Current snapshot number for the transaction executing this statement.For
SNAPSHOTandSNAPSHOT TABLE STABILITY, this number is stable for the duration of the transaction;forREAD COMMITTEDthis number will change (increment) as concurrent transactions are committed. STATEMENT_TIMEOUT-
Connection-level statement timeout, or
0if no timeout was set.When0is reported the databaseStatementTimeoutfromdatabases.conforfirebird.confapplies. TRANSACTION_ID-
Same as global [fblangref50-contextvars-current-transaction] variable.
WIRE_COMPRESSED-
Compression status of the current connection.If the connection is compressed, returns
TRUE;if it is not compressed, returnsFALSE.ReturnsNULLif the connection is embedded. WIRE_CRYPT_PLUGIN-
If connection is encrypted - returns name of current plugin, otherwise
NULL. WIRE_ENCRYPTED-
Encryption status of the current connection.If the connection is encrypted, returns
TRUE;if it is not encrypted, returnsFALSE.ReturnsNULLif the connection is embedded.