Re: [HACKERS] Current TODO list

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
Cc: The Hermit Hacker <scrappy(at)hub(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter T Mount <peter(at)retep(dot)org(dot)uk>, PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] Current TODO list
Date: 1999-05-21 03:19:22
Message-ID: 199905210319.XAA16181@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > > I wonder that no one but me object to the patch.
> > > It may cause serious results.
> >
> > How? Why? In what way? Details?
> >
>
> I don't have tables > 1G.
> So I won't be damaged by the patch.
>
> But I don't understand what Beta is.
> Why isn't such a dangerous fucntion checked and tested
> carefully ?
>
> For example,the following code is not changed by the patch.
>
> if (FileTruncate(v->mdfd_vfd, nblocks * BLCKSZ) < 0)
> return -1;
>
> It never truncate segmented files and there may be cases the
> original file increases its size(ftruncate() increases the size of
> target file if the requested size is longer than the actual size).
> It's not checked and tested and once it occurs I don't know
> what will happen.
>
> But my anxiety is the use of unlink()(FileNameUnlink()).
>
> Unlink() is very dangerous.
> Unlink() never remove the target file immediately.and even the
> truncating process doesn't close the files by the patch and so
> unlinked files are still alive for all processes which have already
> opened the files.
> Who checked and tested the influence carefully ?
>
> I think it's not so easy to implement and check mdtruncate().

OK, I see what you are saying, but the multi-segment problem is on our
list to fix. Is this risking non-multi-segment cases. If not, then
let's keep it, and continue improving the multi-segment handling,
because it was pretty bad before, and we need it fixed.

--
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 Tom Lane 1999-05-21 03:19:50 Re: [HACKERS] Broken select on regular expression !!!
Previous Message D'Arcy J.M. Cain 1999-05-21 02:51:44 Cache lookup failed