SET/SHOW
Overview
The SET
statement lets you set specific options while the SHOW
statement helps you see the current values in Oxla.
Syntax
The syntax for these functions is as follows:
For options that accept boolean values, <value>
can be either ON
or OFF
, which correspond to TRUE
or FALSE
respectively
For options that accept boolean values, <value>
can be either ON
or OFF
, which correspond to TRUE
or FALSE
respectively
The available options that can be set and shown are:
extra_float_digits
: by default, Oxla displays a limited number of digits, but you can set how many extra digits are displayed after the decimal point in floating-point numbers by using this optionapplication_name
: sets a custom name for the applicationtimezone
: determines the time zone used for date and time functionsclient_min_messages
: sets the message levels sent to the client (valid values areDEBUG5
,DEBUG4
,DEBUG3
,DEBUG2
,DEBUG1
,LOG
,NOTICE
,WARNING
andERROR
)search_path
: defines namespaces at which Oxla looks for tablesenable_fast_math
: enables mathematical optimizations that trade precision for speed by utilizing faster, less accurate mathematical functions
Examples
SET Statement
To change the number of displayed digits for floating-point values, use the SET
statement in a following way:
To change the number of displayed digits for floating-point values, use the SET
statement in a following way:
To change the client message, use the SET
statement as follows:
To change the mode of the fast math option, use the SET
statement like this:
SHOW Statement
To display the current timezone setting, use the following query:
To display the current timezone setting, use the following query:
To display the current search path, run the query below:
To check the status of the fast math option, use the following method: