Re: [HACKERS] More race conditions in logical replication

Поиск
Список
Период
Сортировка
Искать
От
Alvaro Herrera
Тема
Re: [HACKERS] More race conditions in logical replication
Дата
Msg-id
20170808181131.mu4fjepuh5m75cyq@alvherre.pgsql
Ответ на
Список
Дерево обсуждения
[HACKERS] More race conditions in logical replication Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] More race conditions in logical replication Noah Misch <noah@leadboat.com>
Re: [HACKERS] More race conditions in logical replication Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] More race conditions in logical replication Petr Jelinek <petr.jelinek@2ndquadrant.com>
Re: [HACKERS] More race conditions in logical replication Petr Jelinek <petr.jelinek@2ndquadrant.com>
Re: [HACKERS] More race conditions in logical replication Petr Jelinek <petr.jelinek@2ndquadrant.com>
Re: [HACKERS] More race conditions in logical replication Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] More race conditions in logical replication Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] More race conditions in logical replication Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] More race conditions in logical replication Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] More race conditions in logical replication Noah Misch <noah@leadboat.com>
Re: [HACKERS] More race conditions in logical replication Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] More race conditions in logical replication Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] More race conditions in logical replication Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] More race conditions in logical replication Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] More race conditions in logical replication Petr Jelinek <petr.jelinek@2ndquadrant.com>
Re: [HACKERS] More race conditions in logical replication Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] More race conditions in logical replication Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] More race conditions in logical replication Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] More race conditions in logical replication Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] More race conditions in logical replication Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] More race conditions in logical replication Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] More race conditions in logical replication Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] More race conditions in logical replication Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] More race conditions in logical replication Noah Misch <noah@leadboat.com>
Re: [HACKERS] More race conditions in logical replication Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] More race conditions in logical replication Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] More race conditions in logical replication Robert Haas <robertmhaas@gmail.com>
Robert Haas wrote:
> On Mon, Aug 7, 2017 at 8:14 PM, Alvaro Herrera  wrote:
> > BTW, I noticed that the PG_WAIT_LOCK value that we're using for wait
> > event here (and in the replication slot case) is bogus.  We probably
> > need something new here.
> 
> Yeah, if you're adding a new wait point, you should add document a new
> constant in the appropriate section, probably something under
> PG_WAIT_IPC in this case.

Here's a patch.  It turned to be a bit larger than I initially expected.

Wait events are a maintainability fail IMO.  I think we need to rethink
this stuff; using generated files from a single source containing the C
symbol, text name and doc blurb sounds better.  That can wait for pg11
though.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления
От: Robert Haas
Дата:
От: Robert Haas
Дата:
FAQ