1. 03 Apr, 2006 3 commits
  2. 02 Apr, 2006 7 commits
  3. 01 Apr, 2006 1 commit
    • Tom Lane's avatar
      Remove the 'slow' path for btree index build, which built the btree · 89bda95d
      Tom Lane authored
      incrementally by successive inserts rather than by sorting the data.
      We were only using the slow path during bootstrap, apparently because
      when first written it failed during bootstrap --- but it works fine now
      AFAICT.  Removing it saves a hundred or so lines of code and produces
      noticeably (~10%) smaller initial states of the system catalog indexes.
      While that won't make much difference for heavily-modified catalogs,
      for the more static ones there may be a useful long-term performance
      improvement.
      89bda95d
  4. 31 Mar, 2006 1 commit
    • Tom Lane's avatar
      Clean up WAL/buffer interactions as per my recent proposal. Get rid of the · a8b8f4db
      Tom Lane authored
      misleadingly-named WriteBuffer routine, and instead require routines that
      change buffer pages to call MarkBufferDirty (which does exactly what it says).
      We also require that they do so before calling XLogInsert; this takes care of
      the synchronization requirement documented in SyncOneBuffer.  Note that
      because bufmgr takes the buffer content lock (in shared mode) while writing
      out any buffer, it doesn't matter whether MarkBufferDirty is executed before
      the buffer content change is complete, so long as the content change is
      completed before releasing exclusive lock on the buffer.  So it's OK to set
      the dirtybit before we fill in the LSN.
      This eliminates the former kluge of needing to set the dirtybit in LockBuffer.
      Aside from making the code more transparent, we can also add some new
      debugging assertions, in particular that the caller of MarkBufferDirty must
      hold the buffer content lock, not merely a pin.
      a8b8f4db
  5. 30 Mar, 2006 3 commits
  6. 29 Mar, 2006 2 commits
  7. 28 Mar, 2006 2 commits
  8. 24 Mar, 2006 2 commits
    • Tom Lane's avatar
      Comments in IndexBuildHeapScan describe the indexing of recently-dead · 4e7d10c7
      Tom Lane authored
      tuples as needed "to keep VACUUM from complaining", but actually there is
      a more compelling reason to do it: failure to do so violates MVCC semantics.
      This is because a pre-existing serializable transaction might try to use
      the index after we finish (re)building it, and it might fail to find tuples
      it should be able to see.  We got this mostly right, but not in the case
      of partial indexes: the code mistakenly discarded recently-dead tuples for
      partial indexes.  Fix that, and adjust the comments.
      4e7d10c7
    • Tom Lane's avatar
      Arrange to emit a description of the current XLOG record as error context · 0a202070
      Tom Lane authored
      when an error occurs during xlog replay.  Also, replace the former risky
      'write into a fixed-size buffer with no overflow detection' API for XLOG
      record description routines; use an expansible StringInfo instead.  (The
      latter accounts for most of the patch bulk.)
      
      Qingqing Zhou
      0a202070
  9. 23 Mar, 2006 2 commits
  10. 21 Mar, 2006 4 commits
  11. 20 Mar, 2006 1 commit
  12. 19 Mar, 2006 2 commits
  13. 18 Mar, 2006 1 commit
  14. 17 Mar, 2006 3 commits
  15. 16 Mar, 2006 2 commits
    • Tom Lane's avatar
      Fix invalid use of #if within a macro, per Laurenz Albe. Also try to · 92f5bfcc
      Tom Lane authored
      make the LDAP code's error messages look like they were written by someone
      who had heard of our style guidelines.
      92f5bfcc
    • Tom Lane's avatar
      Clean up representation of function RTEs for functions returning RECORD. · 23160139
      Tom Lane authored
      The original coding stored the raw parser output (ColumnDef and TypeName
      nodes) which was ugly, bulky, and wrong because it failed to create any
      dependency on the referenced datatype --- and in fact would not track type
      renamings and suchlike.  Instead store a list of column type OIDs in the
      RTE.
      
      Also fix up general failure of recordDependencyOnExpr to do anything sane
      about recording dependencies on datatypes.  While there are many cases where
      there will be an indirect dependency (eg if an operator returns a datatype,
      the dependency on the operator is enough), we do have to record the datatype
      as a separate dependency in examples like CoerceToDomain.
      
      initdb forced because of change of stored rules.
      23160139
  16. 15 Mar, 2006 1 commit
  17. 14 Mar, 2006 3 commits