Re: [HACKERS] Open 6.5 items - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] Open 6.5 items
Date
Msg-id 199905310340.XAA19362@candle.pha.pa.us
Whole thread Raw
In response to RE: [HACKERS] Open 6.5 items  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
Responses RE: [HACKERS] Open 6.5 items  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
List pgsql-hackers
> > I thought we decided that file descriptors are kept by backends, and are
> > still accessable while new backends don't see the files.  Correct?
> >
> 
> Yes,other backends could write to unliked files which would be 
> vanished before long.
> I think it's more secure to truncate useless segments to size 0 
> than unlinking the segments though vacuum would never remove 
> useless segments.

If you truncate, other backends will see the data gone, and will be
writing into the middle of an empty file.  Better to remove.

--  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
 


pgsql-hackers by date:

Previous
From: "Hiroshi Inoue"
Date:
Subject: RE: [HACKERS] Open 6.5 items
Next
From: "Hiroshi Inoue"
Date:
Subject: RE: [HACKERS] Open 6.5 items