Repair Large Object bugs demonstrated by Ian Grant's example. inv_write
authorTom Lane <[email protected]>
Thu, 15 Jun 2000 06:07:34 +0000 (06:07 +0000)
committerTom Lane <[email protected]>
Thu, 15 Jun 2000 06:07:34 +0000 (06:07 +0000)
commita62d8393ef1c2c7c1bac23aaadf404a22a36d4f9
tree504282f1d6c1c57c06ffd52028fd5314e254fbb7
parent946e80c435e01c501e6d94ac251aab45df400f39
Repair Large Object bugs demonstrated by Ian Grant's example.  inv_write
was inappropriately relying on rel->rd_nblocks to tell if the LO is
empty (apparently a hack to get around a long-dead index bug), causing
misbehavior on a written-but-never-vacuumed LO.  Also, inv_read failed
to cope gracefully with 'holes' (unwritten regions) in the object.
src/backend/storage/large_object/inv_api.c