1. 18 4月, 2005 8 次提交
  2. 17 4月, 2005 4 次提交
  3. 16 4月, 2005 3 次提交
    • T
      Reduce PANIC to ERROR in several xlog routines that are used in both · 5f0a974e
      Tom Lane 提交于
      critical and noncritical contexts (an example of noncritical being
      post-checkpoint removal of dead xlog segments).  In the critical cases
      the CRIT_SECTION mechanism will cause ERROR to be promoted to PANIC
      anyway, and in the noncritical cases we shouldn't let an error take
      down the entire database.  Arguably there should be *no* explicit
      PANIC errors in this module, only more START/END_CRIT_SECTION calls,
      but I didn't go that far.  (Yet.)
      5f0a974e
    • T
      Modify MoveOfflineLogs/InstallXLogFileSegment to avoid O(N^2) behavior · 61b86142
      Tom Lane 提交于
      when recycling a large number of xlog segments during checkpoint.
      The former behavior searched from the same start point each time,
      requiring O(checkpoint_segments^2) stat() calls to relocate all the
      segments.  Instead keep track of where we stopped last time through.
      61b86142
    • T
      Revert addition of poorly-thought-out DUMP TIMESTAMP archive entry, · 348f856d
      Tom Lane 提交于
      which induced bug #1597 in addition to having several other misbehaviors
      (like labeling the dump with a completion time having nothing to do with
      reality).  Instead just print out the desired strings where RestoreArchive
      was already emitting the 'PostgreSQL database dump' and
      'PostgreSQL database dump complete' strings.
      348f856d
  4. 15 4月, 2005 9 次提交
  5. 14 4月, 2005 5 次提交
    • M
    • T
      First phase of project to use fixed OIDs for all system catalogs and · 7c13781e
      Tom Lane 提交于
      indexes.  Extend the macros in include/catalog/*.h to carry the info
      about hand-assigned OIDs, and adjust the genbki script and bootstrap
      code to make the relations actually get those OIDs.  Remove the small
      number of RelOid_pg_foo macros that we had in favor of a complete
      set named like the catname.h and indexing.h macros.  Next phase will
      get rid of internal use of names for looking up catalogs and indexes;
      but this completes the changes forcing an initdb, so it looks like a
      good place to commit.
      Along the way, I made the shared relations (pg_database etc) not be
      'bootstrap' relations any more, so as to reduce the number of hardwired
      entries and simplify changing those relations in future.  I'm not
      sure whether they ever really needed to be handled as bootstrap
      relations, but it seems to work fine to not do so now.
      7c13781e
    • T
      Simplify initdb-time assignment of OIDs as I proposed yesterday, and · 2193a856
      Tom Lane 提交于
      avoid encroaching on the 'user' range of OIDs by allowing automatic
      OID assignment to use values below 16k until we reach normal operation.
      
      initdb not forced since this doesn't make any incompatible change;
      however a lot of stuff will have different OIDs after your next initdb.
      2193a856
    • T
      Change addRangeTableEntryForRelation() to take a Relation pointer instead · 2fdf9e0b
      Tom Lane 提交于
      of just a relation OID, thereby not having to open the relation for itself.
      This actually saves code rather than adding it for most of the existing
      callers, which had the rel open already.  The main point though is to be
      able to use this rather than plain addRangeTableEntry in setTargetTable,
      thus saving one relation_openrv/relation_close cycle for every INSERT,
      UPDATE, or DELETE.  Seems to provide a several percent win on simple
      INSERTs.
      2fdf9e0b
    • T
      Revert yesterday's change to make pg_cast.h say 'OID = 0' in DATA entries. · 45c79a30
      Tom Lane 提交于
      On reflection, we ought to get rid of that mechanism entirely.
      45c79a30
  6. 13 4月, 2005 3 次提交
  7. 12 4月, 2005 6 次提交
  8. 11 4月, 2005 2 次提交