Re: [HACKERS] Open 6.5 items

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: The Hermit Hacker <scrappy(at)hub(dot)org>
Cc: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>, Andreas Zeugswetter <Andreas(dot)Zeugswetter(at)telecom(dot)at>, PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] Open 6.5 items
Date: 1999-06-07 14:30:15
Message-ID: 199906071430.KAA05077@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > Nothing is wrong with it. I just thought it would be more reliable to
> > unlink it, but now am considering I was wrong.
>
> Just a thought, but if you left it zero length, the dba could use it as a
> means for estimating disk space requirements? :) buff.0 buff.1 is zero
> lenght, but buff.2 isn't, we know that we've filled 2x1gig buffers plus a
> little bit, so can allocate space accordingly? :)
>
> I'm groping here, help me out ... :)
>

One reason to do truncate is that if it is a symbolic link to another
driver, that link will stay, while unlink will not, and will recreate on
on the same drive.

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1999-06-07 14:33:43 Re: [HACKERS] Bug in LIKE ?
Previous Message Bruce Momjian 1999-06-07 14:28:52 Re: [HACKERS] Bug in LIKE ?