Re: Using ini file to setup replication

From: Greg Stark <stark(at)mit(dot)edu>
To: Samrat Revagade <revagade(dot)samrat(at)gmail(dot)com>
Cc: Andres Freund <andres(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Using ini file to setup replication
Date: 2013-07-22 13:59:58
Message-ID: CAM-w4HOgcmhz+r7hyu3VP5rup=Nqza5XBLV=F+Z+14gTvfLx7A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Jul 19, 2013 at 2:20 PM, Samrat Revagade
<revagade(dot)samrat(at)gmail(dot)com> wrote:

> for example:
> if i want to configure 2 servers then it will add 6 lines,for 3 -9, for 4-12
> setting's for particular server will be:
>
> considering the way of setting value to conf parameters : guc . value
>
> standby_name.'AAA'
> synchronous_transfer. commit
> wal_sender_timeout.60

I have a feeling Samrat and Sawada-san have some good use cases where
this extra syntax could be a big step up in expressiveness. But I'm
having a hard time figuring out exactly what they have in mind. If
either of you could explain in more detail how the extra syntax would
apply to your use case and how it would let you do something that you
can't already do it might be helpful.

I'm assuming the idea is something like having a single config file
which can work for the server regardless of whether it's acting as the
primary or standby and then be able to switch roles by switching a
single flag which would control which parts of the config file were
applied. But I'm having a hard time seeing how exactly that would
work.
--
greg

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Cédric Villemain 2013-07-22 14:40:35 Re: Re: [HACKERS] Wal sync odirect
Previous Message Andres Freund 2013-07-22 13:02:12 Re: enum-ify resource manager's xl_info values