Finding the configuration settings for your session
At some point, it will occur to you to ask: What are the current configuration settings?
Most settings can be changed in more than one way, and some ways do not affect all users or all sessions, so it is quite possible to get confused.
How to do it…
Your first thought is probably to look in postgresql.conf
, which is the configuration file and is described in detail in the Setting the configuration parameters for the database server recipe, in this chapter. That works, but only as long as there is only one parameter file. If there are two, then maybe you’re reading the wrong file! How would you know? So the cautious and accurate way is to not trust a text file but to trust the server itself.
Moreover, you learned in the previous recipe, Setting configuration parameters in your programs, that each parameter has a scope that determines when it can be set. Some parameters can be set through postgresql.conf...