Re: Re: [COMMITTERS] pgsql: Enable logical slots to follow timeline switches

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Re: [COMMITTERS] pgsql: Enable logical slots to follow timeline switches
Дата
Msg-id CAMsr+YHMamHM7MUZOPpJOa7e3Z+d8E+-W+xH984J3EfOrLfUQw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Re: [COMMITTERS] pgsql: Enable logical slots to follow timeline switches  (Craig Ringer <craig@2ndquadrant.com>)
Ответы Re: Re: [COMMITTERS] pgsql: Enable logical slots to follow timeline switches  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
On 1 April 2016 at 12:47, Craig Ringer <craig@2ndquadrant.com> wrote:
 
I'll prep a follow-up patch. 


Done and attached.

Note that I can't use PG_GETARG_TRANSACTIONID directly since it's a macro defined only in xid.c . It didn't seem worth extracting it and moving it to postgres.h (where the other non-ADT-specific PG_GETARG_ macros are) or its own new header just for this, so I've spelled it out each time.

I now remember that that's part of why I used bigint as an argument type. The other part is that txid_current() returns bigint and there's no cast from bigint to xid. So the tests would have to CREATE CAST or cast via 'text'. They now do the latter.

We should probably have a cast from bigint to/from xid, but the type is so little-used that it's not much fuss.

--
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services
Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: [PATCH v10] GSSAPI encryption support
Следующее
От: Kouhei Kaigai
Дата:
Сообщение: EPQ recheck across HashJoin, what does it actuall check?