1. 09 Mar, 2009 1 commit
  2. 08 Mar, 2009 4 commits
  3. 07 Mar, 2009 3 commits
  4. 05 Mar, 2009 5 commits
  5. 04 Mar, 2009 9 commits
  6. 03 Mar, 2009 2 commits
  7. 02 Mar, 2009 2 commits
    • Tom Lane's avatar
      When we are in error recursion trouble, arrange to suppress translation and · fd9e2acc
      Tom Lane authored
      encoding conversion of any elog/ereport message being sent to the frontend.
      This generalizes a patch that I put in last October, which suppressed
      translation of only specific messages known to be associated with recursive
      can't-translate-the-message behavior.  As shown in bug #4680, we need a more
      general answer in order to have some hope of coping with broken encoding
      conversion setups.  This approach seems a good deal less klugy anyway.
      
      Patch in all supported branches.
      fd9e2acc
    • Teodor Sigaev's avatar
      Fix usage of char2wchar/wchar2char. Changes: · 32032d42
      Teodor Sigaev authored
      - pg_wchar and wchar_t could have different size, so char2wchar
        doesn't call pg_mb2wchar_with_len to prevent out-of-bound
        memory bug
      - make char2wchar/wchar2char symmetric, now they should not be
        called with C-locale because mbstowcs/wcstombs oftenly doesn't
        work correct with C-locale.
      - Text parser uses pg_mb2wchar_with_len directly in case of
        C-locale and multibyte encoding
      
      Per bug report by Hiroshi Inoue <inoue@tpf.co.jp> and
      following discussion.
      
      Backpatch up to 8.2 when multybyte support was implemented in tsearch.
      32032d42
  8. 28 Feb, 2009 3 commits
  9. 27 Feb, 2009 7 commits
  10. 26 Feb, 2009 3 commits
  11. 25 Feb, 2009 1 commit
    • Tom Lane's avatar
      Fix an old problem in decompilation of CASE constructs: the ruleutils.c code · eea49769
      Tom Lane authored
      looks for a CaseTestExpr to figure out what the parser did, but it failed to
      consider the possibility that an implicit coercion might be inserted above
      the CaseTestExpr.  This could result in an Assert failure in some cases
      (but correct results if Asserts weren't enabled), or an "unexpected CASE WHEN
      clause" error in other cases.  Per report from Alan Li.
      
      Back-patch to 8.1; problem doesn't exist before that because CASE was
      implemented differently.
      eea49769