Re: [HACKERS] tables > 1 gig

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 04:01:18
Message-ID: 199906180401.AAA15528@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > What this does is to create a zero length file, and the rename unlinks
> > the tablename file, and puts the zero-length file in it's place.
> > rename() is atomic, so there is no time that the table file does not
> > exist.
> >
>
> Let
> i1 be the inode of zz
> i2 be the inode of tablename
> before rename().
>
> Does this mean
>
> New backends read/write i1 inode and
> backends that have the table open read/write i2 inode ?
>
> If so,it seems wrong.
> All backends should see same data.

Yes, I can see your point. It would show them different views of the
table.

So, as you were saying, we have no way of invalidating file descriptors
of other backends for secondary segments. Why does truncating the file
not work? Any ideas?

--
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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vadim Mikheev 1999-06-18 04:10:57 Re: [HACKERS] Re: Apparent bug in _make_subplan
Previous Message Hiroshi Inoue 1999-06-18 03:57:14 RE: [HACKERS] tables > 1 gig