From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | "Ross J(dot) Reedstrom" <reedstrm(at)wallace(dot)ece(dot)rice(dot)edu> |
Cc: | Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: FW: [PATCHES] relation filename patch |
Date: | 2000-05-01 18:51:00 |
Message-ID: | 200005011851.OAA03386@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> I seem to recall that the cases where two files are needed are to remove
> the drop/recreate cycle from CLUSTER and index rebuilding, particuarly
> to make them robust to interuption, particularly as to the rename()
> of the underlying file. With my current patch, that could be done (at
> 2x disk space cost) by building the second version of the table under a
> different relname, perhaps as a temp relation even, and then UPDATE the
> pg_class entry to point at the new file, and have the temp relation point
> to the old file, as the last step. None of the DB code needs to have the
> filename in sync, so just leave it 'wrong', or fix it at vacuum time,
> when you get a table lock anyway.
Yes, I agree, cleanup during vacuum is a nice idea, though it makes
tablename checks before the vacuum not work. Let's see what people want
to implement and we can make decisions then.
--
Bruce Momjian | http://www.op.net/~candle
pgman(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 | Tom Lane | 2000-05-01 19:12:44 | Re: RE: [PATCHES] relation filename patch |
Previous Message | Ross J. Reedstrom | 2000-05-01 18:45:51 | Re: FW: [PATCHES] relation filename patch |