Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: explanation for seeks in VACUUM



Jeff Davis <pgsql(at)j-davis(dot)com> writes:
> Where am I going wrong? Are many of these lseeks no-ops or something?

They're not supposed to be, but if you only tracked seeks and not
reads or writes, it's hard to be sure what's going on.

8.2's VACUUM should process a btree index (this is a btree index no?)
in physical order, so I'd expect lseeks only when a page is already in
buffers --- at least on the read side.  On the write side things might
be a great deal less predictable.  You're cleaning out about one tuple
in 30, so the odds are that nearly every index page is getting dirtied,
and they're going to need to be written sometime.

			regards, tom lane



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group