diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-05-10 20:38:49 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-05-10 20:38:49 +0000 |
commit | 642107d5baa06c21bc9d9a937e4710008e4826a9 (patch) | |
tree | 2d4cef5702ca144fb89c0e131b3fcbb598a9f3dc /src/backend/access/gist/gist.c | |
parent | a26ad8a643d4ae44be16a773e19f7ae32df048ac (diff) | |
download | postgresql-642107d5baa06c21bc9d9a937e4710008e4826a9.tar.gz postgresql-642107d5baa06c21bc9d9a937e4710008e4826a9.zip |
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.
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions