1. 12 Aug, 2005 3 commits
  2. 11 Aug, 2005 7 commits
  3. 10 Aug, 2005 4 commits
  4. 09 Aug, 2005 10 commits
  5. 08 Aug, 2005 6 commits
  6. 07 Aug, 2005 2 commits
  7. 06 Aug, 2005 1 commit
    • Tom Lane's avatar
      COPY performance improvements. Avoid calling CopyGetData for each input · 9b29f9f3
      Tom Lane authored
      character, tighten the inner loops of CopyReadLine and CopyReadAttribute,
      arrange to parse out all the attributes of a line in just one call instead
      of one CopyReadAttribute call per attribute, be smarter about which client
      encodings require slow pg_encoding_mblen() loops.  Also, clean up the
      mishmash of static variables and overly-long parameter lists in favor of
      passing around a single CopyState struct containing all the state data.
      Original patch by Alon Goldshuv, reworked by Tom Lane.
      9b29f9f3
  8. 05 Aug, 2005 2 commits
  9. 04 Aug, 2005 1 commit
    • Tom Lane's avatar
      ALTER TABLE OWNER must change the ownership of the table's rowtype too. · 33f5bf97
      Tom Lane authored
      This was not especially critical before, but it is now that we track
      ownership dependencies --- the dependency for the rowtype *must* shift
      to the new owner.  Spotted by Bernd Helmle.
      Also fix a problem introduced by recent change to allow non-superusers
      to do ALTER OWNER in some cases: if the table had a toast table, ALTER
      OWNER failed *even for superusers*, because the test being applied would
      conclude that the new would-be owner had no create rights on pg_toast.
      A side-effect of the fix is to disallow changing the ownership of indexes
      or toast tables separately from their parent table, which seems a good
      idea on the whole.
      33f5bf97
  10. 03 Aug, 2005 1 commit
    • Bruce Momjian's avatar
      · e48b28b6
      Bruce Momjian authored
      Done:
      
      < * Prevent inherited tables from expanding temporary subtables of other
      > * -Prevent inherited tables from expanding temporary subtables of other
      e48b28b6
  11. 02 Aug, 2005 3 commits
    • Tom Lane's avatar
      Tweak BgBufferSync() so that a persistent write error on a dirty buffer · 6eac4e69
      Tom Lane authored
      doesn't block the bgwriter from making progress writing out other buffers.
      This was a hard problem in the context of the ARC/2Q design, but it's
      trivial in the context of clock sweep ... just advance the sweep counter
      before we try to write not after.
      6eac4e69
    • Tom Lane's avatar
      Prevent planner from including temp tables of other backends when expanding · 688784f6
      Tom Lane authored
      an inheritance tree.  Per recent discussions.
      688784f6
    • Tom Lane's avatar
      Clean up CREATE DATABASE processing to make it more robust and get rid · 558730ac
      Tom Lane authored
      of special case for Windows port.  Put a PG_TRY around most of createdb()
      to ensure that we remove copied subdirectories on failure, even if the
      failure happens while creating the pg_database row.  (I think this explains
      Oliver Siegmar's recent report.)  Having done that, there's no need for
      the fragile assumption that copydir() mustn't ereport(ERROR), so simplify
      its API.  Eliminate the old code that used system("cp ...") to copy
      subdirectories, in favor of using copydir() on all platforms.  This not
      only should allow much better error reporting, but allows us to fsync
      the created files before trusting that the copy has succeeded.
      558730ac