From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org> |
Subject: | Re: [HACKERS] tables > 1 gig |
Date: | 1999-06-18 02:30:31 |
Message-ID: | 199906180230.WAA12112@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(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
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Lockhart | 1999-06-18 02:31:02 | Re: [HACKERS] New TODO item |
Previous Message | D'Arcy J.M. Cain | 1999-06-18 02:28:58 | Re: [HACKERS] This is weird |