1. 04 Mar, 2009 8 commits
  2. 03 Mar, 2009 2 commits
  3. 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
  4. 28 Feb, 2009 3 commits
  5. 27 Feb, 2009 7 commits
  6. 26 Feb, 2009 3 commits
  7. 25 Feb, 2009 8 commits
  8. 24 Feb, 2009 3 commits
    • Peter Eisentraut's avatar
      7380b638
    • Peter Eisentraut's avatar
      Add the possibility to specify an explicit validator function for foreign-data · 7babccb9
      Peter Eisentraut authored
      wrappers (similar to procedural languages).  This way we don't need to retain
      the nearly empty libraries, and we are more free in how to implement the
      wrapper API in the future.
      7babccb9
    • Tom Lane's avatar
      Repair a longstanding bug in CLUSTER and the rewriting variants of ALTER · f73bed30
      Tom Lane authored
      TABLE: if the command is executed by someone other than the table owner (eg,
      a superuser) and the table has a toast table, the toast table's pg_type row
      ends up with the wrong typowner, ie, the command issuer not the table owner.
      This is quite harmless for most purposes, since no interesting permissions
      checks consult the pg_type row.  However, it could lead to unexpected failures
      if one later tries to drop the role that issued the command (in 8.1 or 8.2),
      or strange warnings from pg_dump afterwards (in 8.3 and up, which will allow
      the DROP ROLE because we don't create a "redundant" owner dependency for table
      rowtypes).  Problem identified by Cott Lang.
      
      Back-patch to 8.1.  The problem is actually far older --- the CLUSTER variant
      can be demonstrated in 7.0 --- but it's mostly cosmetic before 8.1 because we
      didn't track ownership dependencies before 8.1.  Also, fixing it before 8.1
      would require changing the call signature of heap_create_with_catalog(), which
      seems to carry a nontrivial risk of breaking add-on modules.
      f73bed30
  9. 23 Feb, 2009 3 commits
  10. 22 Feb, 2009 1 commit