November 2015
Beginner
464 pages
9h 46m
English
The PostgreSQL configuration settings control several aspects of the PostgreSQL cluster. For the administration aspect, one can define the statement time out, number of allowed connections, transaction type—read only or read/write—, and so on. From the development point of view, these settings can help a developer optimize queries.
The following recipe shows how to get and set a certain configuration value.
Getting a value can be done in several ways, such as selecting the value from the pg_settings catalog view, browsing the postgresql.conf file, or using the following function and statement:
car_portal=# SELECT current_setting('work_mem'); current_setting ----------------- ...
Read now
Unlock full access