pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Lelarge <guillaume@lelarge.info>
To: Jaume Sabater <jsabater@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Getting the value of a config parameter in runtime
Date: Wed, 31 Dec 2008 14:05:35 +0100
Message-ID: <495B6E1F.50508@lelarge.info> (raw)
In-Reply-To: <3786f7bb0812310335p7d1e5bbu8d01b175a628ee6f@mail.gmail.com>
References: <3786f7bb0812310335p7d1e5bbu8d01b175a628ee6f@mail.gmail.com>

Jaume Sabater a écrit :
> [...]
> Sorry to ask this, I had it noted down but now I cannot find it and
> I've been googling for 30 minutes now without success. There is a way
> to query the system database to get the current value of a
> configuration parameter, something in the form of SELECT value FROM
> some_table WHERE field_name = 'archive_command', or similar, can't
> remember, honestly. Or perhaps something more generic which was
> filtered with greps, tails, heads and cuts.
> 
> Would someone be so kind as to point me at the right page or remind me
> the way it was done?
> 

Table is pg_settings, and your field_name should be name.

Regards.


-- 
Guillaume.
 http://www.postgresqlfr.org
 http://dalibo.com



view thread (3+ messages)

Message-ID: <495B6E1F.50508@lelarge.info>
Permalink:  ../495B6E1F.50508@lelarge.info/
Also on:    postgresql.org/message-id/495B6E1F.50508@lelarge.info

 · 

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: pgsql-admin@postgresql.org
  Cc: guillaume@lelarge.info, jsabater@gmail.com
  Subject: Re: Getting the value of a config parameter in runtime
  In-Reply-To: <495B6E1F.50508@lelarge.info>

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

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