Re: 9.2.1 & index-only scans : abnormal heap fetches after VACUUM FULL
От | Bruce Momjian |
---|---|
Тема | Re: 9.2.1 & index-only scans : abnormal heap fetches after VACUUM FULL |
Дата | |
Msg-id | 20140125020906.GA17657@momjian.us обсуждение исходный текст |
Ответ на | Re: 9.2.1 & index-only scans : abnormal heap fetches after VACUUM FULL (Jaime Casanova <jaime@2ndquadrant.com>) |
Ответы |
Re: 9.2.1 & index-only scans : abnormal heap fetches after
VACUUM FULL
|
Список | pgsql-hackers |
On Fri, Jan 24, 2014 at 04:52:55PM -0500, Jaime Casanova wrote: > On Tue, Dec 3, 2013 at 11:25 AM, Bruce Momjian <bruce@momjian.us> wrote: > > > > Is everyone else OK with this approach? Updated patch attached. > > > > Hi, > > I started to look at this patch and i found that it fails an assertion > as soon as you run a VACUUM FULL after a lazy VACUUM even if those are > on unrelated relations. For example in an assert-enabled build with > the regression database run: > > VACUUM customer; > [... insert here whatever commands you like or nothing at all ...] > VACUUM FULL customer; Wow, thanks for the testing. You are right that I had two bugs, both in visibilitymap_set(). First, I made setting heapBuf optional, but forgot to remove the Assert check now that it was optional. Second, I passed InvalidBlockNumber instead of InvalidBuffer when calling visibilitymap_set(). Both are fixed in the attached patch. Thanks for the report. -- Bruce Momjian <bruce@momjian.us> http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. +
Вложения
В списке pgsql-hackers по дате отправления: