Re: Attempt to consolidate reading of XLOG page

Поиск
Список
Период
Сортировка
Искать
От
Michael Paquier
Тема
Re: Attempt to consolidate reading of XLOG page
Дата
Msg-id
20191125033048.GG37821@paquier.xyz
Ответ на
Список
Дерево обсуждения
Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Michael Paquier <michael@paquier.xyz>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Robert Haas <robertmhaas@gmail.com>
Re: Attempt to consolidate reading of XLOG page Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Attempt to consolidate reading of XLOG page Robert Haas <robertmhaas@gmail.com>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Thomas Munro <thomas.munro@gmail.com>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Attempt to consolidate reading of XLOG page Alvaro Herrera from 2ndQuadrant <alvherre@alvh.no-ip.org>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Attempt to consolidate reading of XLOG page Tom Lane <tgl@sss.pgh.pa.us>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Michael Paquier <michael@paquier.xyz>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Michael Paquier <michael@paquier.xyz>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Attempt to consolidate reading of XLOG page Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Attempt to consolidate reading of XLOG page Michael Paquier <michael@paquier.xyz>
Re: Attempt to consolidate reading of XLOG page Michael Paquier <michael@paquier.xyz>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Michael Paquier <michael@paquier.xyz>
Re: Attempt to consolidate reading of XLOG page Michael Paquier <michael@paquier.xyz>
Re: Attempt to consolidate reading of XLOG page Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Attempt to consolidate reading of XLOG page Michael Paquier <michael@paquier.xyz>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Attempt to consolidate reading of XLOG page Michael Paquier <michael@paquier.xyz>
Re: Attempt to consolidate reading of XLOG page Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Attempt to consolidate reading of XLOG page Michael Paquier <michael@paquier.xyz>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Attempt to consolidate reading of XLOG page Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Attempt to consolidate reading of XLOG page Antonin Houska <ah@cybertec.at>
Re: Attempt to consolidate reading of XLOG page Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Attempt to consolidate reading of XLOG page Haribabu Kommi <kommi.haribabu@gmail.com>
On Fri, Nov 22, 2019 at 07:56:32PM -0300, Alvaro Herrera wrote:
> I see no reason to leave ws_off.  We can move that to XLogReaderState; I
> did that here.  We also need the offset in WALReadError, though, so I
> added it there too.  Conceptually it seems clearer to me this way.

Yeah, that seems cleaner.

> What do you think of the attached?

Looks rather fine to me.

> BTW I'm not clear what errors can pread()/pg_pread() report that do not
> set errno.  I think lines 1083/1084 of WALRead are spurious now.

Because we have no guarantee that errno will be cleared if you do a
partial read where errno is not set, so you may finish by reporting
the state of a previous failed read instead of the partially-failed
one depending on how WALReadError is treated?  In short, I don't see
any actual reason why it would be good to remove the reset of errno
either before the calls to pread and pwrite().
--
Michael
В списке pgsql-hackers по дате отправления
От: Noah Misch
Дата:
От: Dilip Kumar
Дата:
FAQ