Finding the configuration settings for your session
At some point, it will occur to you to ask: What are the current configuration settings?
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 Updating the parameter file recipe. 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, but others...