pgsql-server/src/backend/storage/smgr md.c

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server/src/backend/storage/smgr md.c
Date: 2003-01-07 01:19:12
Message-ID: 20030107011912.C9381475EBF@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: tgl(at)postgresql(dot)org 03/01/06 20:19:12

Modified files:
src/backend/storage/smgr: md.c

Log message:
Tweak mdnblocks() to avoid doing lseek() on segments that it has
previously determined not to be the last segment of a relation.
This reduces the expected cost to one seek, rather than one seek per
segment. We can get away with this because truncation of a relation
will cause a relcache flush and so the md.c file descriptor will be
closed; when it is re-opened we will re-determine the last segment.

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian - CVS 2003-01-07 04:25:29 pgsql-server/ oc/src/sgml/libpq.sgml rc/backen ...
Previous Message Bruce Momjian - CVS 2003-01-06 22:48:16 pgsql-server/ oc/src/sgml/libpq.sgml rc/interf ...