Re: OK, OK, Hiroshi's right: use a seperately-generated filename - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: OK, OK, Hiroshi's right: use a seperately-generated filename
Date
Msg-id 200006182301.TAA18988@candle.pha.pa.us
Whole thread Raw
In response to Re: OK, OK, Hiroshi's right: use a seperately-generated filename  (Chris Bitmead <chris@bitmead.com>)
List pgsql-hackers
> Tom Lane wrote:
>   So
> > the thing would act a lot like the original-relname-plus-OID variant
> > that's been discussed so far.  (Original relname because ALTER TABLE
> > RENAME would *not* change the physical file name.  But we could
> > think about a form of VACUUM that creates a whole new table by
> > versioning, and that would presumably bring the physical name back
> > in sync with the logical relname.)
> 
> At least on UNIX, couldn't you use a hard-link and change the name in
> pg_class immediately? Let the brain-dead operating systems use the
> vacuum method.

Yes, we can hard-link, and let vacuum remove the old link.

--  Bruce Momjian                        |  http://www.op.net/~candle pgman@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: Bruce Momjian
Date:
Subject: Re: Big 7.1 open items
Next
From: Bruce Momjian
Date:
Subject: Re: Big 7.1 open items