Re: Configuring synchronous replication

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Thom Brown <thom(at)linux(dot)com>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Configuring synchronous replication
Date: 2010-09-22 12:25:40
Message-ID: 4C99F5C4.4070305@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On 09/22/2010 07:57 AM, Dave Page wrote:
> On Wed, Sep 22, 2010 at 12:50 PM, Peter Eisentraut<peter_e(at)gmx(dot)net> wrote:
>> On ons, 2010-09-22 at 12:20 +0100, Dave Page wrote:
>>>> No, it's really not hierarchical. It only has goes one level deep.
>>> I guess pgAdmin/wxWidgets are broken then :-)
>>>
>>> [Servers]
>>> Count=5
>>> [Servers/1]
>>> Server=localhost
>> Well, by that logic, even what we have now for postgresql.conf is
>> hierarchical.
> Well, yes - if you consider add-in GUCs which use prefixing like foo.setting=...
>
>> I think the criterion was rather meant to be
>>
>> - can represent hierarchies without repeating intermediate node names
> If this were data, I could understand that as it could lead to
> tremendous bloat, but as a config file, I'd rather have the
> readability of the ini format, despite the repeated node names, than
> have to hack XML files by hand.
>

XML is not the only alternative - please don't use it as a straw man.
For example, here is a fragment from the Bacula docs using their
hierarchical format:

FileSet {
Name = Test
Include {
File = /home/xxx/test
Options {
regex = ".*\.c$"
}
}
}

Or here is a piece from the buildfarm client config (which is in fact
perl, but could also be JSON or similar fairly easily):

mail_events =>
{
all => [],
fail => [],
change => ['foo(at)bar(dot)com', 'baz(at)blurfl(dot)org' ],
green => [],
},
build_env =>
{
CCACHE_DIR => "/home/andrew/pgfarmbuild/ccache/$branch",
},

cheers

andrew

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Dave Page 2010-09-22 12:32:00 Re: Configuring synchronous replication
Previous Message Simon Riggs 2010-09-22 12:12:18 Re: Configuring synchronous replication

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave Page 2010-09-22 12:32:00 Re: Configuring synchronous replication
Previous Message Fujii Masao 2010-09-22 12:21:46 Re: Standby registration