Re: logical changeset generation v4

From: Steve Singer <steve(at)ssinger(dot)info>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: logical changeset generation v4
Date: 2013-01-28 21:57:30
Message-ID: BLU0-SMTP48C9424E26D48629D256E0DC180@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 13-01-28 06:23 AM, Andres Freund wrote:
> The CF is also there to find UI warts and such, so something like this
> seems perfectly fine. Even moreso as it doesn't look this will get
> into 9.3 anyway. I wanted to add such an option, but I was too
> lazy^Wbusy to think about the sematics. Your current syntax doesn't
> really allow arguments to be specified in a nice way. I was thinking
> of -o name=value and allowing multiple specifications of -o to build
> the option string. Any arguments against that?

Multiple -o options sound fine to me.

>> /* Initiate the replication stream at specified location */
>> - snprintf(query, sizeof(query), "START_LOGICAL_REPLICATION '%s' %X/%X",
>> - slot, (uint32) (startpos >> 32), (uint32) startpos);
>> + snprintf(query, sizeof(query), "START_LOGICAL_REPLICATION '%s' %X/%X (%s)",
>> + slot, (uint32) (startpos >> 32), (uint32) startpos,plugin_opts);
> ISTM that (%s) shouldn't be specified when there are no options, but as
> the options need to be pre-escaped anyway, that looks like a non-problem
> in a bit more complete implementation.
>
> Greetings,
>
> Andres Freund
>
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2013-01-28 22:01:49 Re: error C2011 in Visual Studio 2012
Previous Message Peter Geoghegan 2013-01-28 21:56:16 Re: enhanced error fields