Skip to content
Snippets Groups Projects
  1. May 07, 2006
  2. May 06, 2006
  3. May 05, 2006
  4. May 04, 2006
    • Tom Lane's avatar
      Code review for contrib/pg_freespacemap. Add a storedpages column to · a43974c6
      Tom Lane authored
      pg_freespacemap_relations --- while one could theoretically get that
      number by counting rows in pg_freespacemap_pages, it's surely the hard
      way to do it.  Avoid expensive and inconvenient conversion to and from
      text format.  Minor code and docs cleanup.
      a43974c6
    • Tom Lane's avatar
      Simplify relcache startup sequence. With the new design of InitPostgres · 46287bd6
      Tom Lane authored
      it's not necessary to have three separate calls anymore.  This patch also
      fixes things so we don't try to read pg_internal.init until after we've
      obtained lock on the target database; which was fairly harmless, but it's
      certainly cleaner this way.
      46287bd6
    • Tom Lane's avatar
      Rethink the locking mechanisms used for CREATE/DROP/RENAME DATABASE. · 52667d56
      Tom Lane authored
      The former approach used ExclusiveLock on pg_database, which being a
      cluster-wide lock meant only one of these operations could proceed at
      a time; worse, it also blocked all incoming connections in ReverifyMyDatabase.
      Now that we have LockSharedObject(), we can use locks of different types
      applied to databases considered as objects.  This allows much more
      flexible management of the interlocking: two CREATE DATABASEs need not
      block each other, and need not block connections except to the template
      database being used.  Similarly DROP DATABASE doesn't block unrelated
      operations.  The locking used in flatfiles.c is also much narrower in
      scope than before.  Per recent proposal.
      52667d56
    • Tom Lane's avatar
      Create a syscache for pg_database-indexed-by-oid, and make use of it · cb98e6fb
      Tom Lane authored
      in various places that were previously doing ad hoc pg_database searches.
      This may speed up database-related privilege checks a little bit, but
      the main motivation is to eliminate the performance reason for having
      ReverifyMyDatabase do such a lot of stuff (viz, avoiding repeat scans
      of pg_database during backend startup).  The locking reason for having
      that routine is about to go away, and it'd be good to have the option
      to break it up.
      cb98e6fb
  5. May 03, 2006
  6. May 02, 2006
  7. Apr 30, 2006
  8. Apr 29, 2006
Loading