Re: Curious about dead rows.
От
Mario Weilguni
Тема
Re: Curious about dead rows.
Дата
Msg-id
473B4AB4.70506@sime.com
Ответ на
Curious about dead rows. (Jean-David Beyer)
Список
Дерево обсуждения
Curious about dead rows. Jean-David Beyer <jeandavid8@verizon.net>
Re: Curious about dead rows. Tom Lane <tgl@sss.pgh.pa.us>
Re: Curious about dead rows. Jean-David Beyer <jeandavid8@verizon.net>
Re: Curious about dead rows. "Joshua D. Drake" <jd@commandprompt.com>
Re: Curious about dead rows. Jean-David Beyer <jeandavid8@verizon.net>
Re: Curious about dead rows. "Scott Marlowe" <scott.marlowe@gmail.com>
Re: Curious about dead rows. Jean-David Beyer <jeandavid8@verizon.net>
Re: Curious about dead rows. Andrew Sullivan <ajs@crankycanuck.ca>
Re: Curious about dead rows. "Merlin Moncure" <mmoncure@gmail.com>
Re: Curious about dead rows. Jean-David Beyer <jeandavid8@verizon.net>
Re: Curious about dead rows. "Merlin Moncure" <mmoncure@gmail.com>
Re: Curious about dead rows. Jean-David Beyer <jeandavid8@verizon.net>
Re: Curious about dead rows. Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Curious about dead rows. Jean-David Beyer <jeandavid8@verizon.net>
Re: Curious about dead rows. Andrew Sullivan <ajs@crankycanuck.ca>
Re: Curious about dead rows. Jean-David Beyer <jeandavid8@verizon.net>
Re: Curious about dead rows. Andrew Sullivan <ajs@crankycanuck.ca>
Re: Curious about dead rows. Andrew Sullivan <ajs@crankycanuck.ca>
Re: Curious about dead rows. Jean-David Beyer <jeandavid8@verizon.net>
Re: Curious about dead rows. Russell Smith <mr-russ@pws.com.au>
Re: Curious about dead rows. Tom Lane <tgl@sss.pgh.pa.us>
Re: Curious about dead rows. Brad Nicholson <bnichols@ca.afilias.info>
Re: Curious about dead rows. "Merlin Moncure" <mmoncure@gmail.com>
Re: Curious about dead rows. "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Curious about dead rows. Jean-David Beyer <jeandavid8@verizon.net>
Re: Curious about dead rows. Erik Jones <erik@myemma.com>
Re: Curious about dead rows. Mario Weilguni <mweilguni@sime.com>
Re: Curious about dead rows. Jean-David Beyer <jeandavid8@verizon.net>
Re: Curious about dead rows. Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Curious about dead rows. Jean-David Beyer <jeandavid8@verizon.net>
Re: Curious about dead rows. Craig James <craig_james@emolecules.com>
Re: Curious about dead rows. Jean-David Beyer <jeandavid8@verizon.net>
Jean-David Beyer schrieb: > I am doing lots of INSERTs on a table that starts out empty (I did a > TRUNCATE on it). I am not, AFAIK, doing DELETEs or UPDATEs. Autovacuum is > on. I moved logging up to debug2 level to see what was going on, and I get > things like this: > > "vl_as": scanned 3000 of 5296 pages, containing 232944 live rows and 1033 > dead rows; 3000 rows in sample, 411224 estimated total rows > > A little later, it says: > > "vl_as": scanned 3000 of 6916 pages, containing 233507 live rows and 493 > dead rows; 3000 rows in sample, 538311 estimated total rows > > (I suppose that means autovacuum is working.) Is this normal, or have I got > something wrong? Why so many dead rows when just doing inserts? It is not > that I think the number is too high, considering the number of rows in the > table at the point where I copied this line. It is just that I do not > understand why there are any. > > Did you rollback some transactions? It will generate dead rows too - at least I think so.
В списке pgsql-performance по дате отправления