1. 28 6月, 2001 1 次提交
    • T
      Install infrastructure for shared-memory free space map. Doesn't actually · e0c9301c
      Tom Lane 提交于
      do anything yet, but it has the necessary connections to initialization
      and so forth.  Make some gestures towards allowing number of blocks in
      a relation to be BlockNumber, ie, unsigned int, rather than signed int.
      (I doubt I got all the places that are sloppy about it, yet.)  On the
      way, replace the hardwired NLOCKS_PER_XACT fudge factor with a GUC
      variable.
      e0c9301c
  2. 11 5月, 2001 1 次提交
    • T
      Avoid unnecessary lseek() calls by cleanups in md.c. mdfd_lstbcnt was · 642107d5
      Tom Lane 提交于
      not being consulted anywhere, so remove it and remove the _mdnblocks()
      calls that were used to set it.  Change smgrextend interface to pass in
      the target block number (ie, current file length) --- the caller always
      knows this already, having already done smgrnblocks(), so it's silly to
      do it over again inside mdextend.  Net result: extension of a file now
      takes one lseek(SEEK_END) and a write(), not three lseeks and a write.
      642107d5
  3. 22 3月, 2001 1 次提交
  4. 25 1月, 2001 1 次提交
  5. 30 11月, 2000 1 次提交
  6. 22 11月, 2000 1 次提交
  7. 13 11月, 2000 1 次提交
  8. 09 11月, 2000 1 次提交
    • T
      Make DROP TABLE rollback-able: postpone physical file delete until commit. · 3908473c
      Tom Lane 提交于
      (WAL logging for this is not done yet, however.)  Clean up a number of really
      crufty things that are no longer needed now that DROP behaves nicely.  Make
      temp table mapper do the right things when drop or rename affecting a temp
      table is rolled back.  Also, remove "relation modified while in use" error
      check, in favor of locking tables at first reference and holding that lock
      throughout the statement.
      3908473c
  9. 29 10月, 2000 1 次提交
  10. 21 10月, 2000 1 次提交
  11. 16 10月, 2000 1 次提交
  12. 03 10月, 2000 2 次提交
  13. 20 6月, 2000 1 次提交
  14. 05 6月, 2000 1 次提交
  15. 13 4月, 2000 1 次提交
  16. 11 4月, 2000 1 次提交
  17. 09 4月, 2000 1 次提交
    • T
      Buffer manager modifications to keep a local buffer-dirtied bit as well · 1f6d8b90
      Tom Lane 提交于
      as a shared dirtybit for each shared buffer.  The shared dirtybit still
      controls writing the buffer, but the local bit controls whether we need
      to fsync the buffer's file.  This arrangement fixes a bug that allowed
      some required fsyncs to be missed, and should improve performance as well.
      For more info see my post of same date on pghackers.
      1f6d8b90
  18. 26 1月, 2000 1 次提交
    • B
      Add: · 5c25d602
      Bruce Momjian 提交于
        * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
      
      to all files copyright Regents of Berkeley.  Man, that's a lot of files.
      5c25d602
  19. 08 11月, 1999 1 次提交
  20. 04 11月, 1999 1 次提交
    • H
      Make it possible to execute crashed CREATE/DROP commands again. · 2e2189a5
      Hiroshi Inoue 提交于
      Now indexes of pg_class and pg_type are unique indexes
      and guarantee the uniqueness of correponding attributes.
      heap_create() was changed to take another boolean parameter
      which allows to postpone the creation of disk file.
      The name of rd_nonameunlinked was changed to rd_unlinked.
      It is used generally(not only for noname relations) now.
      Requires initdb.
      2e2189a5
  21. 02 9月, 1999 1 次提交
    • T
      Repair a bunch of problems in md.c. This builds on Hiroshi's · 68c32348
      Tom Lane 提交于
      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.
      68c32348
  22. 18 7月, 1999 1 次提交
  23. 16 7月, 1999 1 次提交
  24. 15 7月, 1999 1 次提交
  25. 14 7月, 1999 1 次提交
  26. 26 5月, 1999 1 次提交
  27. 24 4月, 1999 1 次提交
  28. 14 2月, 1999 1 次提交
  29. 09 10月, 1998 1 次提交
  30. 01 9月, 1998 2 次提交
  31. 21 7月, 1998 1 次提交
  32. 27 6月, 1998 1 次提交
  33. 23 6月, 1998 1 次提交
  34. 30 5月, 1998 1 次提交
  35. 01 4月, 1998 1 次提交
    • M
      From: Maurice Gittens <mgittens@david.gits.nl> · 896a42a5
      Marc G. Fournier 提交于
      After applying the following patch there remain two
      probable buffer overruns detected by Electric Fence during
      the regression test.
      I'll try find out what causes the remain two ones.
      
      This patch also corrects a typo in smgr.c.
      896a42a5
  36. 08 1月, 1998 1 次提交
  37. 05 1月, 1998 1 次提交
  38. 09 9月, 1997 1 次提交