Re: pg_replication_origin_xact_reset() and its argument variables

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: pg_replication_origin_xact_reset() and its argument variables
Дата
Msg-id CAHGQGwEz4Lni2abAyt3Mh9bUEfkMqDv0VU7VQwgKbP27ggJorg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg_replication_origin_xact_reset() and its argument variables  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pg_replication_origin_xact_reset() and its argument variables  (Robert Haas <robertmhaas@gmail.com>)
Re: pg_replication_origin_xact_reset() and its argument variables  (Andres Freund <andres@anarazel.de>)
Re: pg_replication_origin_xact_reset() and its argument variables  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On Sat, Jul 2, 2016 at 7:01 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Andres Freund <andres@anarazel.de> writes:
>> On 2016-06-30 10:14:04 -0400, Tom Lane wrote:
>>> Fujii Masao <masao.fujii@gmail.com> writes:
>>>> As far as I read the code of the function, those arguments don't seem to
>>>> be necessary. So I'm afraid that the pg_proc entry for the function might
>>>> be incorrect and those two arguments should be removed from the definition.
>
>>> Sure looks that way from here.  Copy-and-paste from the previous
>>> line in pg_proc.h, perhaps?
>
>> Yes, that's clearly wrong.

Attached patch (pg_replication_origin_xact_reset_9.6.patch) fixes this.
We need to apply this at least before RC1 of PostgreSQL9.6 will be released
because the patch needs the change of catalog version.

>> Damn.  Can't fix that for 9.5 anymore. The
>> function isn't all that important (especially not from SQL), but still,
>> that's annoying.  I'm inclined to just remove the args in 9.6. We could
>> also add a note to the 9.5 docs, adding that the arguments are there by
>> error?

What about the attched patch (pg_replication_origin_xact_reset_9.5.patch)?

Regards,

--
Fujii Masao

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: Re: handling unconvertible error messages
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: pg_basebackup wish list