This is actually more of a fundamental problem with mdtruncate. It
authorBruce Momjian <bruce@momjian.us>
Mon, 17 May 1999 06:38:41 +0000 (06:38 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 17 May 1999 06:38:41 +0000 (06:38 +0000)
commit56c96deefea80dd9064f5dd8d70a96a02be742d7
tree9e62f776581622210cb4d19634b68ce10ee97862
parente09fc8c3babdd04ab9085ecf2a66189abf43cf31
This is actually more of a fundamental problem with mdtruncate.  It
looks
like someone just didn't add support for multiple segments for
truncation.

The following patch seems to do the right thing, for me at least.
It passed my tests, my data looks right(no data that shouldn't be in
there) and regression is ok.

Ole Gjerde
src/backend/storage/smgr/md.c