Skip site navigation (1) Skip section navigation (2)

AW: AW: Vacuum only with 20% old tuples

From: Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at>
To: "'Hiroshi Inoue'" <Inoue(at)tpf(dot)co(dot)jp>, Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at>
Cc: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: AW: AW: Vacuum only with 20% old tuples
Date: 2000-07-25 12:35:28
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
> > All actions involving a rename of a file imho involve exclusive access
> > to the table, thus no concurrent access is allowed/possible.
> >
> Once a table file was opened,it is not closed until the end of the
> backend process except due to the shortage of  file descriptors.

An open file only references the inode, thus the name can safely 
change underneath, no? 
Of course on next real access to a renamed file it would 
need to be closed and opened anew, since it has the wrong file open.
Looks like it would be good to close files as soon as possible
once they do not correspond to a valid db object anymore.

> Even now,cygwin port has a flaw that we have no guarantee to
> recreate a table safely after dropping the table. Unfortunately
> we couldn't recreate the same named file until all processes
> close the file in cygwin.

Even if you rename the old file before creating a new one ?
Or is a rename not possible when another process has the file open ?



pgsql-hackers by date

Next:From: Jan WieckDate: 2000-07-25 13:27:11
Subject: New Privilege model purposal
Previous:From: Hiroshi InoueDate: 2000-07-25 10:41:12
Subject: Re: AW: Vacuum only with 20% old tuples

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group