1. 26 3月, 2007 3 次提交
    • T
      Make _SPI_execute_plan pass the query source string down to ProcessUtility · 1cc97d17
      Tom Lane 提交于
      if possible.  I had left this undone in the first pass at the API change
      for ProcessUtility, but forgot to revisit it after the plancache changes
      made it possible to do it.
      1cc97d17
    • T
      Remove the prohibition on executing cursor commands through SPI_execute. · bf823652
      Tom Lane 提交于
      Vadim had included this restriction in the original design of the SPI code,
      but I'm darned if I can see a reason for it.
      
      I left the macro definition of SPI_ERROR_CURSOR in place, so as not to
      needlessly break any SPI callers that are checking for it, but that code
      will never actually be returned anymore.
      bf823652
    • T
      Clean up the representation of special snapshots by including a "method · e85a01df
      Tom Lane 提交于
      pointer" in every Snapshot struct.  This allows removal of the case-by-case
      tests in HeapTupleSatisfiesVisibility, which should make it a bit faster
      (I didn't try any performance tests though).  More importantly, we are no
      longer violating portable C practices by assuming that small integers are
      distinct from all pointer values, and HeapTupleSatisfiesDirty no longer
      has a non-reentrant API involving side-effects on a global variable.
      
      There were a couple of places calling HeapTupleSatisfiesXXX routines
      directly rather than through the HeapTupleSatisfiesVisibility macro.
      Since these places had to be changed anyway, I chose to make them go
      through the macro for uniformity.
      
      Along the way I renamed HeapTupleSatisfiesSnapshot to HeapTupleSatisfiesMVCC
      to emphasize that it's only used with MVCC-type snapshots.  I was sorely
      tempted to rename HeapTupleSatisfiesVisibility to HeapTupleSatisfiesSnapshot,
      but forebore for the moment to avoid confusion and reduce the likelihood that
      this patch breaks some of the pending patches.  Might want to reconsider
      doing that later.
      e85a01df
  2. 25 3月, 2007 5 次提交
  3. 24 3月, 2007 8 次提交
  4. 23 3月, 2007 18 次提交
  5. 22 3月, 2007 6 次提交