Re: pg_recvlogical --endpos

From: Craig Ringer <craig(at)2ndquadrant(dot)com>
To: "Okano, Naoki" <okano(dot)naoki(at)jp(dot)fujitsu(dot)com>
Cc: Euler Taveira <euler(at)timbira(dot)com(dot)br>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_recvlogical --endpos
Date: 2016-11-29 08:03:26
Message-ID: CAMsr+YFeUSVTQ=52qedtxv+9HJWi_OMFbENO8eBFr5x8qL04Zg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 22 November 2016 at 16:52, Okano, Naoki <okano(dot)naoki(at)jp(dot)fujitsu(dot)com> wrote:
> On Monday, November 21, 2016 1:08 PM Craig Ringer wrote:
>> I've updated the patch for this. It's already posted on the logical
>> decoding timeline following thread, so I'll avoid repeating it here.
>>
>> https://www.postgresql.org/message-id/CAMsr%2BYGd5dv3zPNch6BU4UXX49NJDC9m3-Y%3DV5q%3DTNcE9QgSaQ%40mail.gmail.com
> I checked the latest patch.
> I think that the error message shown below is a typo.
>
>> + if (endpos != InvalidXLogRecPtr && !do_start_slot)
>> + {
>> + fprintf(stderr,
>> + _("%s: cannot use --create-slot or --drop-slot together with --endpos\n"),
> The condition '!do_start_slot' is not reflected in the error message.

Would it be better rephrased as "--endpos can only be used with --start" ?

> The patch should allow --endpos to work with --create-slot.

How? It doesn't make sense with --create-slot .

> Also, the document explains as follows.
>> + specified LSN. If specified when not in <option>--start</option>
>> + mode, an error is raised.
> So, it is better to output an error message that matches the document when changing the error message.

Not sure I understand this.

--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Korotkov 2016-11-29 09:03:35 Re: UNDO and in-place update
Previous Message Craig Ringer 2016-11-29 07:55:23 Re: [PATCH] Logical decoding timeline following take II