Skip to content
Snippets Groups Projects
  1. May 24, 2010
  2. May 23, 2010
  3. May 19, 2010
  4. May 18, 2010
  5. May 15, 2010
  6. May 14, 2010
  7. May 13, 2010
  8. May 12, 2010
  9. Apr 28, 2010
  10. Apr 24, 2010
  11. Apr 05, 2010
  12. Apr 02, 2010
  13. Mar 25, 2010
    • Tom Lane's avatar
      Fix ginint4_queryextract() to actually do what it was intended to do for an · 5ceb13c8
      Tom Lane authored
      unsatisfiable query, such as indexcol && empty_array.  It should return -1
      to tell GIN no scan is required; but silly typo disabled the logic for that,
      resulting in unnecessary "GIN indexes do not support whole-index scans" error.
      Per bug report from Jeff Trout.
      
      Back-patch to 8.3 where the logic was introduced.
      5ceb13c8
  14. Mar 23, 2010
  15. Mar 03, 2010
    • Tom Lane's avatar
      Make contrib/xml2 use core xml.c's error handler, when available (that is, · 5e47403b
      Tom Lane authored
      in versions >= 8.3).  The core code is more robust and efficient than what
      was there before, and this also reduces risks involved in swapping different
      libxml error handler settings.
      
      Before 8.3, there is still some risk of problems if add-on modules such as
      Perl invoke libxml without setting their own error handler.  Given the lack
      of reports I'm not sure there's a risk in practice, so I didn't take the
      step of actually duplicating the core code into older contrib/xml2 branches.
      Instead I just tweaked the existing code to ensure it didn't leave a dangling
      pointer to short-lived memory when throwing an error.
      5e47403b
  16. Mar 01, 2010
    • Tom Lane's avatar
      Fix contrib/xml2 so regression test still works when it's built without libxslt. · d6a6f8c6
      Tom Lane authored
      This involves modifying the module to have a stable ABI, that is, the
      xslt_process() function still exists even without libxslt.  It throws a
      runtime error if called, but doesn't prevent executing the CREATE FUNCTION
      call.  This is a good thing anyway to simplify cross-version upgrades.
      d6a6f8c6
    • Tom Lane's avatar
      Remove xmlCleanupParser calls from contrib/xml2. · a1020909
      Tom Lane authored
      These are unnecessary and probably dangerous.  I don't see any immediate
      risk situations in the core XML support or contrib/xml2 itself, but there
      could be issues with external uses of libxml2, and in any case it's an
      accident waiting to happen.
      a1020909
  17. Feb 28, 2010
    • Tom Lane's avatar
      Fix up memory management problems in contrib/xml2. · 936c4af1
      Tom Lane authored
      Get rid of the code that attempted to funnel libxml2's memory allocations
      into palloc.   We already knew from experience with the core xml datatype
      that trying to do this is simply not reliable.  Unlike the core code, I
      did not bother adding a lot of PG_TRY/PG_CATCH logic to try to ensure that
      everything is cleaned up on error exit.  Hence, we might leak some memory
      if one of these functions fails partway through.  Given the deprecated
      status of this contrib module and the fact that errors partway through
      the functions shouldn't be too common, it doesn't seem worth worrying about.
      
      Also fix a separate bug in xpath_table, that it did the wrong things
      if given a result tuple descriptor with less than 2 columns.  While
      such a case isn't very useful in practice, we shouldn't fail or stomp
      memory when it occurs.
      
      Add some simple regression tests based on all the reported crash cases
      that I have on hand.
      
      This should be back-patched, but let's see if the buildfarm likes it first.
      936c4af1
Loading