Re: Getting the initdb parameter values

From: Julio Leyva <jcleyva(at)hotmail(dot)com>
To: <greg(at)2ndquadrant(dot)com>, <sburnwal(at)cisco(dot)com>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Getting the initdb parameter values
Date: 2010-04-13 18:01:35
Message-ID: BLU102-W22C93DD8DBB37F97BC117FA1110@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-sql


su - postgres
psql dbname -c "show all"

> Date: Tue, 13 Apr 2010 13:13:58 -0400
> From: greg(at)2ndquadrant(dot)com
> To: sburnwal(at)cisco(dot)com
> CC: pgsql-admin(at)postgresql(dot)org
> Subject: Re: [ADMIN] Getting the initdb parameter values
>
> Satish Burnwal (sburnwal) wrote:
> >
> > I have an existing postgres database and I want to know what are the
> > values of the parameters that were determined during initdb. Is there
> > any way to know those values ?
> >
>
> I normally use:
>
> select name,current_setting(name) from pg_settings where
> source='configuration file'
>
> To figure out all the things that were set at initdb time from a new
> running database. You can also look at the postgresql.conf file it
> generated and search for lines that are not commented out with "#" at
> the start.
>
> --
> Greg Smith 2ndQuadrant US Baltimore, MD
> PostgreSQL Training, Services and Support
> greg(at)2ndQuadrant(dot)com www.2ndQuadrant.us
>
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Mitch Collinsworth 2010-04-13 18:16:48 drop database / create database / data still here ?
Previous Message Rob Sargent 2010-04-13 17:57:53 Re: [ADMIN] Getting the initdb parameter values

Browse pgsql-sql by date

  From Date Subject
Next Message Feixiong Li 2010-04-14 04:33:30 How to max() make null as biggest value?
Previous Message Rob Sargent 2010-04-13 17:57:53 Re: [ADMIN] Getting the initdb parameter values