Re: Testing the async-commit patch

From: Greg Smith <gsmith(at)gregsmith(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Testing the async-commit patch
Date: 2007-08-14 18:37:23
Message-ID: Pine.GSO.4.64.0708141417370.11206@westnet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On Mon, 2007-08-13 at 16:27 -0400, Andrew Dunstan wrote:
> [asynch_commit]
> synchronous_commit = off
> [no_fsync]
> fsync = off

This is the Windows INI file format. As such, it's easy to find code
samples in almost any language that parse this format for you. For
example, Python has a core library called ConfigParser that will read
these in, and somewhere around here I even have some UNIX shell code that
parses it. There's already a PostgreSQL-related project using this
format--even on UNIX systems the odbc.ini config files look like this.

I already have a program that generates multiple postgresql.conf files
using this format around here for exactly this sort of test (compare
benchmark results with two different configurations), just never had a
reason to package it up for anybody else to use. It's trivial code if you
use the Python parser.

On Tue, 14 Aug 2007, Simon Riggs wrote:

> Sounds fine, though I'd prefer this in XML to allow further
> extensibility in the future.

Putting this in XML significantly raises the bar for how complicated tools
that work on these files must be, with the implicit dependencies that go
with that. And as Andrew already pointed out, there is very little
tree-structure to this data that justifies the extra complexity.

--
* Greg Smith gsmith(at)gregsmith(dot)com http://www.gregsmith.com Baltimore, MD

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2007-08-14 18:41:13 Re: change name of redirect_stderr?
Previous Message Heikki Linnakangas 2007-08-14 18:35:43 Re: default_text_search_config and expression indexes