public inbox for [email protected]  
help / color / mirror / Atom feed
From: Stefan Seifert <[email protected]>
To: [email protected]
Subject: Docs incorrectly claiming equivalence between show and pg_settings
Date: Wed, 12 Feb 2014 15:54:31 +0100
Message-ID: <[email protected]> (raw)
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-docs>

Hi!

http://www.postgresql.org/docs/devel/static/sql-show.html claims:
"Also, the pg_settings system view produces the same information."

This is not entirely correct. On IRC I was told, that the view only contains 
settings set from C, not user defined settings defined by the SET command:

timemngt=# set my.test = 'test';                                                                                                                                  
SET                                                                                                                                                               
timemngt=# show my.test;                                                                                                                                          
┌─────────┐                                                                                                                                                       
│ my.test │                                                                                                                                                       
├─────────┤                                                                                                                                                       
│ test    │                                                                                                                                                       
└─────────┘                                                                                                                                                       
(1 row)                                                                                                                                                           

timemngt=# select * from pg_settings where name = 'my.test';                                                                                                      
timemngt=# 

Including this rather obscure bit of information might help another user down 
the road.

Thanks,
Stefan Seifert


-- 
Sent via pgsql-docs mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs



view thread (6+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: Docs incorrectly claiming equivalence between show and pg_settings
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox