1. 12 Sep, 1999 1 commit
    • Tom Lane's avatar
      Further improvements in cnfify: reduce amount of self-recursion · 2119cc06
      Tom Lane authored
      in or_normalize, remove detection of duplicate subexpressions (since it's
      highly unlikely to be worth the amount of time it takes), and introduce
      a dnfify() entry point so that unintelligible backwards logic in UNION
      processing can be eliminated.  This is just an intermediate step ---
      next thing is to look at not forcing the qual into CNF form when it would
      be better off in DNF form.
      2119cc06
  2. 11 Sep, 1999 4 commits
  3. 10 Sep, 1999 1 commit
  4. 09 Sep, 1999 5 commits
  5. 08 Sep, 1999 2 commits
  6. 07 Sep, 1999 5 commits
  7. 06 Sep, 1999 6 commits
  8. 05 Sep, 1999 3 commits
  9. 04 Sep, 1999 8 commits
  10. 03 Sep, 1999 3 commits
  11. 02 Sep, 1999 2 commits
    • Tom Lane's avatar
      51f62ea4
    • Tom Lane's avatar
      Repair a bunch of problems in md.c. This builds on Hiroshi's · 68c32348
      Tom Lane authored
      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