Re: [HACKERS] tables > 1 gig - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] tables > 1 gig
Date
Msg-id 199906180230.WAA12112@candle.pha.pa.us
Whole thread Raw
In response to RE: [HACKERS] tables > 1 gig  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
Responses RE: [HACKERS] tables > 1 gig
List pgsql-hackers
> 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
 


pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: [HACKERS] New TODO item
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] This is weird