1. 03 12月, 2009 2 次提交
    • H
      Fix bug in temporary file management with subtransactions. A cursor opened · ab3148b7
      Heikki Linnakangas 提交于
      in a subtransaction stays open even if the subtransaction is aborted, so
      any temporary files related to it must stay alive as well. With the patch,
      we use ResourceOwners to track open temporary files and don't automatically
      close them at subtransaction end (though in the normal case temporary files
      are registered with the subtransaction resource owner and will therefore be
      closed).
      
      At end of top transaction, we still check that there's no temporary files
      marked as close-at-end-of-transaction open, but that's now just a debugging
      cross-check as the resource owner cleanup should've closed them already.
      ab3148b7
    • T
      Clarify what's supposed to happen when a cursor FETCH is rolled back · dc588058
      Tom Lane 提交于
      by aborting a subtransaction.  Per discussion with Heikki.
      dc588058
  2. 02 12月, 2009 7 次提交
    • B
      thread-safety · 8c1c2e38
      Bruce Momjian 提交于
      Apply full patch to enable thread-safety by default, e.g. doc changes.
      8c1c2e38
    • T
      Preventing intersection of ranges during page split. Changes are only · aebc4e67
      Teodor Sigaev 提交于
      optimization, so don't backpatch.
      aebc4e67
    • T
      Mark application_name as GUC_REPORT so that the value will be reported back · 59ed94ad
      Tom Lane 提交于
      to the client by the server.  This might seem pretty pointless but apparently
      it will help pgbouncer, and perhaps other connection poolers.  Anyway it's
      practically free to do so for the normal use-case where appname is only set
      in the startup packet --- we're just adding a few more bytes to the initial
      ParameterStatus response packet.  Per comments from Marko Kreen.
      59ed94ad
    • T
      Instead of sending application_name as a SET command after the connection · 3dfcf8cc
      Tom Lane 提交于
      is made, include it in the startup-packet options.  This makes it work more
      like every other libpq connection option, in particular it now has the same
      response to RESET ALL as the rest.  This also saves one network round trip
      for new applications using application_name.  The cost is that if the server
      is pre-8.5, it'll reject the startup packet altogether, forcing us to retry
      the entire connection cycle.  But on balance we shouldn't be optimizing that
      case in preference to the behavior with a new server, especially when doing
      so creates visible behavioral oddities.  Per discussion.
      3dfcf8cc
    • B
      Enable thread safety · 925b32bb
      Bruce Momjian 提交于
      Enable thread safety on all platforms.  This will either be followed up
      by a more extensive patch, or reverted, depending on the build farm
      results.
      925b32bb
    • B
      psql -f - · b291c0fb
      Bruce Momjian 提交于
      Adjust psql -f - to behave like a normal file and honor the -1 flag.
      
      Report from Robert Haas
      b291c0fb
    • T
      Teach the regular expression functions to do case-insensitive matching and · 0d323425
      Tom Lane 提交于
      locale-dependent character classification properly when the database encoding
      is UTF8.
      
      The previous coding worked okay in single-byte encodings, or in any case for
      ASCII characters, but failed entirely on multibyte characters.  The fix
      assumes that the <wctype.h> functions use Unicode code points as the wchar
      representation for Unicode, ie, wchar matches pg_wchar.
      
      This is only a partial solution, since we're still stupid about non-ASCII
      characters in multibyte encodings other than UTF8.  The practical effect
      of that is limited, however, since those cases are generally Far Eastern
      glyphs for which concepts like case-folding don't apply anyway.  Certainly
      all or nearly all of the field reports of problems have been about UTF8.
      A more general solution would require switching to the platform's wchar
      representation for all regex operations; which is possible but would have
      substantial disadvantages.  Let's try this and see if it's sufficient in
      practice.
      0d323425
  3. 01 12月, 2009 5 次提交
  4. 30 11月, 2009 7 次提交
  5. 29 11月, 2009 3 次提交
  6. 28 11月, 2009 4 次提交
  7. 27 11月, 2009 3 次提交
  8. 26 11月, 2009 5 次提交
  9. 25 11月, 2009 2 次提交
  10. 24 11月, 2009 2 次提交