From: | Tom Lane <tgl(at)hub(dot)org> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql/src include/storage/smgr.h backend/stora ... |
Date: | 2001-05-10 20:38:49 |
Message-ID: | 200105102038.f4AKcnX98522@hub.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
CVSROOT: /home/projects/pgsql/cvsroot
Module name: pgsql
Changes by: tgl(at)hub(dot)org 01/05/10 16:38:49
Modified files:
src/include/storage: smgr.h
src/backend/storage/buffer: bufmgr.c
src/backend/commands: sequence.c
src/backend/storage/smgr: md.c mm.c smgr.c
Log message:
Avoid unnecessary lseek() calls by cleanups in md.c. mdfd_lstbcnt was
not being consulted anywhere, so remove it and remove the _mdnblocks()
calls that were used to set it. Change smgrextend interface to pass in
the target block number (ie, current file length) --- the caller always
knows this already, having already done smgrnblocks(), so it's silly to
do it over again inside mdextend. Net result: extension of a file now
takes one lseek(SEEK_END) and a write(), not three lseeks and a write.
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian - CVS | 2001-05-10 22:36:53 | pgsql/doc TODO |
Previous Message | Bruce Momjian - CVS | 2001-05-10 20:28:48 | pgsql/doc TODO |