pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gregory Stark <stark@enterprisedb.com>
To: Greg Smith <gsmith@gregsmith.com>
Cc: Michael Nacos <m.nacos@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Overhauling GUCS
Date: Mon, 18 Aug 2008 19:57:32 +0100
Message-ID: <87y72u178j.fsf@oxford.xeocode.com> (raw)
In-Reply-To: <Pine.GSO.4.64.0808181250190.17947@westnet.com>
References: <7473.1212625397@sss.pgh.pa.us>
	<200807161530.m6GFUNY28751@momjian.us>
	<407fa4640808130738s3537ca45j22322a5eb70f9173@mail.gmail.com>
	<Pine.GSO.4.64.0808171610220.22642@westnet.com>
	<407fa4640808180426q26a41cv817deb91dbbcd312@mail.gmail.com>
	<Pine.GSO.4.64.0808181250190.17947@westnet.com>

"Greg Smith" <gsmith@gregsmith.com> writes:

> On Mon, 18 Aug 2008, Michael Nacos wrote:
>
>> Having done a SELECT * FROM pg_settings, all the information you need seems
>> to be there...
>
> See http://archives.postgresql.org/pgsql-hackers/2008-06/msg00209.php You sound
> like you're at rung 2 on the tool author ladder I describe there, still
> thinking about the fun part of tuning but not yet aware of the annoying
> postgresql.conf management issues that show up in the field that motivate many
> of the GUCS changes suggested.  Coping with user and system-generated comments
> is one difficult part that people normally don't consider, 

Because coping with free-form user-edited text is a losing game. People don't
consider it because it's a dead-end. Instead you have one file for user-edited
configuration and a separate file for computer generated configuration. You
never try to automatically edit a user-edited file -- that way lies madness.

> dealing with bad settings the server won't start with is another.

A tuning interface can't be turing complete and detect all possible
misconfigurations. To do that it would have to be as complex as the server.

In any case worrying about things like this before you have a tuning interface
that can do the basics is putting the cart before the horse.

>> As soon as there is a tuning strategy published, a number of tools will
>> certainly follow.
>
> Josh Berkus published one in 2005 and zero such tools have been produced since
> then, even though it looked to him then (like it does to you now and like it
> did to me once) that such a tool would easily follow:
> http://pgfoundry.org/docman/?group_id=1000106

The entire target market for such a thing is DBAs stuck on hosted databases
which don't have shell access to their machines. Perhaps the overlap between
that and the people who can write a server-side module which dumps out a
config file according to some rules is just too small?

I do think you and others make it less likely every time you throw up big
insoluble problems like above though. As a consequence every proposal has
started with big overly-complex solutions trying to solve all these incidental
issues which never go anywhere instead of simple solutions which directly
tackle the main problem.

-- 
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com
  Ask me about EnterpriseDB's On-Demand Production Tuning



view thread (226+ messages)  latest in thread

Message-ID: <87y72u178j.fsf@oxford.xeocode.com>
Permalink:  ../87y72u178j.fsf@oxford.xeocode.com/
Also on:    postgresql.org/message-id/87y72u178j.fsf@oxford.xeocode.com

 · 

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-hackers@postgresql.org
  Cc: stark@enterprisedb.com, gsmith@gregsmith.com, m.nacos@gmail.com
  Subject: Re: Overhauling GUCS
  In-Reply-To: <87y72u178j.fsf@oxford.xeocode.com>

* 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