Re: Index Skip Scan
| От | Peter Geoghegan |
|---|---|
| Тема | Re: Index Skip Scan |
| Дата | |
| Msg-id | CAH2-Wzm3OE+uPrFhg8HbW=Z+_ffF09nruLUag+H4EqZtNn+=Og@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: Index Skip Scan (Peter Geoghegan <pg@bowt.ie>) |
| Список | pgsql-hackers |
On Mon, Jan 20, 2020 at 5:05 PM Peter Geoghegan <pg@bowt.ie> wrote: > You can add another assertion that calls a new utility function in > bufmgr.c. That can use the same logic as this existing assertion in > FlushOneBuffer(): > > Assert(LWLockHeldByMe(BufferDescriptorGetContentLock(bufHdr))); > > We haven't needed assertions like this so far because it's usually it > is clear whether or not a buffer lock is held (plus the bufmgr.c > assertions help on their own). Just in case anybody missed it, I am working on a patch that makes nbtree use Valgrind instrumentation to detect page accessed without a buffer content lock held: https://postgr.es/m/CAH2-WzkLgyN3zBvRZ1pkNJThC=xi_0gpWRUb_45eexLH1+k2_Q@mail.gmail.com There is also one component that detects when any buffer is accessed without a buffer pin. -- Peter Geoghegan
В списке pgsql-hackers по дате отправления: