1. 19 12月, 2008 4 次提交
  2. 18 12月, 2008 1 次提交
  3. 17 12月, 2008 3 次提交
    • H
      Don't reset pg_class.reltuples and relpages in VACUUM, if any pages were · dcf84099
      Heikki Linnakangas 提交于
      skipped. We could update relpages anyway, but it seems better to only
      update it together with reltuples, because we use the reltuples/relpages
      ratio in the planner. Also don't update n_live_tuples in pgstat.
      
      ANALYZE in VACUUM ANALYZE now needs to update pg_class, if the
      VACUUM-phase didn't do so. Added some boolean-passing to let analyze_rel
      know if it should update pg_class or not.
      
      I also moved the relcache invalidation (to update rd_targblock) from
      vac_update_relstats to where RelationTruncate is called, because
      vac_update_relstats is not called for partial vacuums anymore. It's more
      obvious to send the invalidation close to the truncation that requires it.
      
      Per report by Ned T. Crigler.
      dcf84099
    • B
      The attached patch contains a couple of fixes in the existing probes and · 5a90bc1f
      Bruce Momjian 提交于
      includes a few new ones.
      
      - Fixed compilation errors on OS X for probes that use typedefs
      - Fixed a number of probes to pass ForkNumber per the relation forks
      patch
      - The new probes are those that were taken out from the previous
      submitted patch and required simple fixes. Will submit the other probes
      that may require more discussion in a separate patch.
      
      Robert Lor
      5a90bc1f
    • T
      Make heap_update() set newtup->t_tableOid correctly, for consistency with · fc3297d8
      Tom Lane 提交于
      the other major heapam.c functions.  The only known consequence of this
      omission is that UPDATE RETURNING failed to return the correct value for
      "tableoid", as per report from KaiGai Kohei.
      
      Back-patch to 8.2.  Arguably it's wrong all the way back; but without
      evidence of visible breakage before RETURNING was added, I'll desist from
      patching the older branches.
      fc3297d8
  4. 16 12月, 2008 5 次提交
  5. 15 12月, 2008 6 次提交
  6. 14 12月, 2008 1 次提交
  7. 13 12月, 2008 3 次提交
    • T
      Remove pg_plan_queries()'s now-useless needSnapshot parameter. It's useless · b69bde77
      Tom Lane 提交于
      in 8.3, too, but I'm not back-patching this change since it would break any
      extension modules that might be calling that function.
      b69bde77
    • T
      Fix failure to ensure that a snapshot is available to datatype input functions · c98a9237
      Tom Lane 提交于
      when they are invoked by the parser.  We had been setting up a snapshot at
      plan time but really it needs to be done earlier, before parse analysis.
      Per report from Dmitry Koterov.
      
      Also fix two related problems discovered while poking at this one:
      exec_bind_message called datatype input functions without establishing a
      snapshot, and SET CONSTRAINTS IMMEDIATE could call trigger functions without
      establishing a snapshot.
      
      Backpatch to 8.2.  The underlying problem goes much further back, but it is
      masked in 8.1 and before because we didn't attempt to invoke domain check
      constraints within datatype input.  It would only be exposed if a C-language
      datatype input function used the snapshot; which evidently none do, or we'd
      have heard complaints sooner.  Since this code has changed a lot over time,
      a back-patch is hardly risk-free, and so I'm disinclined to patch further
      than absolutely necessary.
      c98a9237
    • A
      0f864a63
  8. 12 12月, 2008 2 次提交
  9. 11 12月, 2008 4 次提交
  10. 09 12月, 2008 2 次提交
  11. 08 12月, 2008 2 次提交
  12. 07 12月, 2008 3 次提交
  13. 05 12月, 2008 2 次提交
  14. 04 12月, 2008 2 次提交