Skip to content
Snippets Groups Projects
  1. Mar 22, 2007
  2. Mar 16, 2007
    • Tom Lane's avatar
      Make use of plancache module for SPI plans. In particular, since plpgsql · 95f6d2d2
      Tom Lane authored
      uses SPI plans, this finally fixes the ancient gotcha that you can't
      drop and recreate a temp table used by a plpgsql function.
      
      Along the way, clean up SPI's API a little bit by declaring SPI plan
      pointers as "SPIPlanPtr" instead of "void *".  This is cosmetic but
      helps to forestall simple programming mistakes.  (I have changed some
      but not all of the callers to match; there are still some "void *"'s
      in contrib and the PL's.  This is intentional so that we can see if
      anyone's compiler complains about it.)
      95f6d2d2
  3. Mar 03, 2007
  4. Mar 01, 2007
  5. Feb 28, 2007
    • Tom Lane's avatar
      Replace direct assignments to VARATT_SIZEP(x) with SET_VARSIZE(x, len). · 234a02b2
      Tom Lane authored
      Get rid of VARATT_SIZE and VARATT_DATA, which were simply redundant with
      VARSIZE and VARDATA, and as a consequence almost no code was using the
      longer names.  Rename the length fields of struct varlena and various
      derived structures to catch anyplace that was accessing them directly;
      and clean up various places so caught.  In itself this patch doesn't
      change any behavior at all, but it is necessary infrastructure if we hope
      to play any games with the representation of varlena headers.
      Greg Stark and Tom Lane
      234a02b2
  6. Feb 16, 2007
  7. Feb 13, 2007
  8. Feb 11, 2007
  9. Feb 10, 2007
  10. Feb 03, 2007
  11. Jan 27, 2007
  12. Jan 25, 2007
    • Peter Eisentraut's avatar
      Various fixes in the logic of XML functions: · 22bd156f
      Peter Eisentraut authored
      - Add new SQL command SET XML OPTION (also available via regular GUC) to
        control the DOCUMENT vs. CONTENT option in implicit parsing and
        serialization operations.
      
      - Subtle corrections in the handling of the standalone property in
        xmlroot().
      
      - Allow xmlroot() to work on content fragments.
      
      - Subtle corrections in the handling of the version property in
        xmlconcat().
      
      - Code refactoring for producing XML declarations.
      22bd156f
  13. Jan 24, 2007
  14. Jan 20, 2007
  15. Jan 19, 2007
  16. Jan 18, 2007
  17. Jan 14, 2007
  18. Jan 12, 2007
  19. Jan 10, 2007
  20. Jan 07, 2007
  21. Jan 06, 2007
  22. Jan 05, 2007
  23. Dec 29, 2006
  24. Dec 28, 2006
  25. Dec 24, 2006
    • Tom Lane's avatar
      Bring some order and sanity to error handling in the xml patch. · 57f1630c
      Tom Lane authored
      Use a TRY block instead of (inadequate) ad-hoc coding to ensure that
      libxml is cleaned up after a failure.  Report the intended SQLCODE
      instead of defaulting to XX000.  Avoid risking use of a dangling
      pointer by keeping the persistent error buffer in TopMemoryContext.
      Be less trusting that error messages don't contain %.
      
      This patch doesn't do anything about changing the way the messages
      are put together --- this is just about mechanism.
      57f1630c
    • Tom Lane's avatar
      Fix machine-dependent crash in sqlchar_to_unicode(). Get rid of · e9da20ab
      Tom Lane authored
      bletcherous and unsafe manipulation of global encoding setting.
      Clean up libxml reporting mechanism a bit (it still looks like a
      dangling-pointer crash waiting to happen, though, not to mention
      being far less than sane from a localization standpoint).
      e9da20ab
    • Tom Lane's avatar
      Code review for XML patch. Instill a bit of sanity in the location of · c957c0ba
      Tom Lane authored
      the XmlExpr code in various lists, use a representation that has some hope
      of reverse-listing correctly (though it's still a de-escaping function
      shy of correctness), generally try to make it look more like Postgres
      coding conventions.
      c957c0ba
  26. Dec 23, 2006
  27. Dec 21, 2006
Loading