postgresql/src/backend/utils/cache
Tom Lane 68c323483c Repair a bunch of problems in md.c. This builds on Hiroshi's
insight that RelationFlushRelation ought to invoke smgrclose, and that the
way to make that work is to ensure that mdclose doesn't fail if the relation
is already closed (or unlinked, if we are looking at a DROP TABLE).  While
I was testing that, I was able to identify several problems that we had
with multiple-segment relations.  The system is now able to do initdb and
pass the regression tests with a very small segment size (I had it set to
64Kb per segment for testing).  I don't believe that ever worked before.
File descriptor leaks seem to be gone too.
I have partially addressed the concerns we had about mdtruncate(), too.
On a Win32 or NFS filesystem it is not possible to unlink a file that
another backend is holding open, so what md.c now does is to truncate
unwanted files to zero length before trying to unlink them.  The other
backends will be forced to close their open files by relation cache
invalidation --- but I think it would take considerable work to make
that happen before vacuum truncates the relation rather than after.
Leaving zero-length files lying around seems a usable compromise.
1999-09-02 02:57:50 +00:00
..
catcache.c Move some system includes into c.h, and remove duplicates. 1999-07-17 20:18:55 +00:00
fcache.c Move some system includes into c.h, and remove duplicates. 1999-07-17 20:18:55 +00:00
inval.c Final cleanup. 1999-07-16 05:00:38 +00:00
lsyscache.c Add get_func_rettype() to general-use lsyscache routines, 1999-08-16 02:06:25 +00:00
Makefile Add TEMP tables/indexes. Add COPY pfree(). Other cleanups. 1999-02-02 03:45:56 +00:00
rel.c Remove unused #includes in *.c files. 1999-07-15 22:40:16 +00:00
relcache.c Repair a bunch of problems in md.c. This builds on Hiroshi's 1999-09-02 02:57:50 +00:00
syscache.c Move get_attdisbursion to lsyscache. Clean up get_typdefault. 1999-08-09 03:13:31 +00:00
temprel.c Move some system includes into c.h, and remove duplicates. 1999-07-17 20:18:55 +00:00