Difference between revisions of "PostgreSQL SET"

From wikieduonline
Jump to navigation Jump to search
Line 23: Line 23:
 
== See also ==
 
== See also ==
 
* {{PostgreSQL SET}}
 
* {{PostgreSQL SET}}
 +
* {{SET}}
 
* {{PostgreSQL}}
 
* {{PostgreSQL}}
  
 
[[Category: PostgreSQL]]
 
[[Category: PostgreSQL]]

Revision as of 15:08, 17 July 2023

wikipedia:SET change a run-time parameter

SET [ SESSION | LOCAL ] configuration_parameter { TO | = } { value | 'value' | DEFAULT }
SET [ SESSION | LOCAL ] TIME ZONE { timezone | LOCAL | DEFAULT }

Examples

SET SESSION AUTHORIZATION 
SET TIME ZONE 'Europe/Rome';
SET SESSION log_statement TO 'all'; 
SET SESSION AUTHORIZATION user_name

Output:
SET
ALTER USER prometheus SET SEARCH_PATH TO prometheus,pg_catalog;

Related

See also

Advertising: