RefLib

Reference library for AI

Back

postgresql_16:3.6.27.1 Configuration Settings Functions

PostgreSQL 16 > The SQL Language > Functions and Operators > System Administration Functions > Configuration Settings Functions

(see functions-admin-set-table) shows the functions available to query and alter run-time configuration parameters.

| Function Description Example(s) | | --- | | current_setting ( setting_name text , missing_ok boolean ) text Returns the current value of the setting setting_name. If there is no such setting, current_setting throws an error unless missing_ok is supplied and is true (in which case NULL is returned). This function corresponds to the SQL command (see postgresql_16:7.1.177). current_setting('datestyle') ISO, MDY | | set_config ( setting_name text, new_value text, is_local boolean ) text Sets the parameter setting_name to new_value, and returns that value. If is_local is true, the new value will only apply during the current transaction. If you want the new value to apply for the rest of the current session, use false instead. This function corresponds to the SQL command (see postgresql_16:7.1.172). set_config('log_statement_stats', 'off', false) off |

Back