Re: [HACKERS] tables > 1 gig

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] tables > 1 gig
Дата
Msg-id 199906180230.WAA12112@candle.pha.pa.us
обсуждение исходный текст
Ответ на RE: [HACKERS] tables > 1 gig  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
Ответы RE: [HACKERS] tables > 1 gig  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
Список 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 по дате отправления:

Предыдущее
От: Thomas Lockhart
Дата:
Сообщение: Re: [HACKERS] New TODO item
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] This is weird