Re: Inadequate executor locking of indexes
От
David Rowley
Тема
Re: Inadequate executor locking of indexes
Дата
Msg-id
CAKJS1f9m03-JWx1rBzg4jEoVDKCQusGCxiGs0CdH9d-_FYBbnA@mail.gmail.com
Ответ на
Re: Inadequate executor locking of indexes (David Rowley)
Список
Дерево обсуждения
Inadequate executor locking of indexes Tom Lane <tgl@sss.pgh.pa.us>
Re: Inadequate executor locking of indexes David Rowley <david.rowley@2ndquadrant.com>
Re: Inadequate executor locking of indexes Andres Freund <andres@anarazel.de>
Re: Inadequate executor locking of indexes Tom Lane <tgl@sss.pgh.pa.us>
Re: Inadequate executor locking of indexes Amit Kapila <amit.kapila16@gmail.com>
Re: Inadequate executor locking of indexes David Rowley <david.rowley@2ndquadrant.com>
Re: Inadequate executor locking of indexes Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Inadequate executor locking of indexes David Rowley <david.rowley@2ndquadrant.com>
Re: Inadequate executor locking of indexes Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Inadequate executor locking of indexes David Rowley <david.rowley@2ndquadrant.com>
Re: Inadequate executor locking of indexes Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Inadequate executor locking of indexes David Rowley <david.rowley@2ndquadrant.com>
Re: Inadequate executor locking of indexes David Rowley <david.rowley@2ndquadrant.com>
Re: Inadequate executor locking of indexes Julien Rouhaud <rjuju123@gmail.com>
Re: Inadequate executor locking of indexes David Rowley <david.rowley@2ndquadrant.com>
Re: Inadequate executor locking of indexes Julien Rouhaud <rjuju123@gmail.com>
Re: Inadequate executor locking of indexes David Rowley <david.rowley@2ndquadrant.com>
Re: Inadequate executor locking of indexes David Rowley <david.rowley@2ndquadrant.com>
Re: Inadequate executor locking of indexes Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Inadequate executor locking of indexes David Rowley <david.rowley@2ndquadrant.com>
Re: Inadequate executor locking of indexes Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Inadequate executor locking of indexes David Rowley <david.rowley@2ndquadrant.com>
Re: Inadequate executor locking of indexes Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Inadequate executor locking of indexes David Rowley <david.rowley@2ndquadrant.com>
Re: Inadequate executor locking of indexes Tom Lane <tgl@sss.pgh.pa.us>
Re: Inadequate executor locking of indexes David Rowley <david.rowley@2ndquadrant.com>
Re: Inadequate executor locking of indexes Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Inadequate executor locking of indexes David Rowley <david.rowley@2ndquadrant.com>
Re: Inadequate executor locking of indexes Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Inadequate executor locking of indexes David Rowley <david.rowley@2ndquadrant.com>
Re: Inadequate executor locking of indexes David Rowley <david.rowley@2ndquadrant.com>
Re: Inadequate executor locking of indexes Tom Lane <tgl@sss.pgh.pa.us>
Re: Inadequate executor locking of indexes David Rowley <david.rowley@2ndquadrant.com>
On Wed, 28 Nov 2018 at 01:55, David Rowley wrote: > If this looks like a good path to go in, then I can produce something > a bit more finished. I'm just a bit unsure when exactly I can do that > as I'm on leave and have other commitments to take care of. This patch is still on my list, so I had another look at what I did back in November... I've changed a couple of things: 1. Changed nodeBitmapIndexscan.c now properly uses the RangeTblEntry's idxlockmode field. 2. Renamed a few variables in finalize_lockmodes(). I'm keen to get some feedback if we should go about fixing things this way. One thing that's still on my mind is that the parser is still at risk of lock upgrade hazards. This patch only fixes the executor. I don't quite see how it would be possible to fix the same in the parser. I was also looking at each call site that calls ExecOpenIndices(). I don't think it's great that ExecInitModifyTable() has its own logic to skip calling that function for DELETE. I wondered if it shouldn't somehow depend on what the idxlockmode is set to. I also saw that apply_handle_delete() makes a call to ExecOpenIndices(). I don't think that one is needed, but I didn't test anything to make sure. Maybe that's for another thread anyway. Updated patch is attached. Adding to the March commitfest as a bug fix. -- David Rowley http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
В списке pgsql-hackers по дате отправления
От: David Rowley
Дата: