> Unlinking unused segments after truncating to zero length may cause
> the result such as
>
> Existent backends write to the truncated file to extend the relation
> while new backends create a new segment file to extend the relation.
How about my idea of creating a truncated file, the renaming it to the
table file. That keeps the table open for other open file descriptors,
but put a zero-length file in place in an atomic manner.
Fact is that the current code is really bad, so I request you do your
best, and let's get it in there for people to review and improve if
necessary.
-- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610)
853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill,
Pennsylvania19026