Skip to content
Snippets Groups Projects
  1. May 21, 2007
    • Peter Eisentraut's avatar
      XPath fixes: · 3963574d
      Peter Eisentraut authored
       - Function renamed to "xpath".
       - Function is now strict, per discussion.
       - Return empty array in case when XPath expression detects nothing
         (previously, NULL was returned in such case), per discussion.
       - (bugfix) Work with fragments with prologue: select xpath('/a',
         '<?xml version="1.0"?><a /><b />'); // now XML datum is always wrapped
         with dummy <x>...</x>, XML prologue simply goes away (if any).
       - Some cleanup.
      
      Nikolay Samokhvalov
      
      Some code cleanup and documentation work by myself.
      3963574d
  2. Apr 06, 2007
    • Tom Lane's avatar
      Support varlena fields with single-byte headers and unaligned storage. · 3e23b68d
      Tom Lane authored
      This commit breaks any code that assumes that the mere act of forming a tuple
      (without writing it to disk) does not "toast" any fields.  While all available
      regression tests pass, I'm not totally sure that we've fixed every nook and
      cranny, especially in contrib.
      
      Greg Stark with some help from Tom Lane
      3e23b68d
  3. Apr 05, 2007
  4. Apr 02, 2007
  5. Apr 01, 2007
  6. Mar 22, 2007
  7. 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
  8. Mar 03, 2007
  9. Mar 01, 2007
  10. 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
  11. Feb 16, 2007
  12. Feb 13, 2007
  13. Feb 11, 2007
  14. Feb 10, 2007
  15. Feb 03, 2007
  16. Jan 27, 2007
  17. 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
  18. Jan 24, 2007
  19. Jan 20, 2007
  20. Jan 19, 2007
  21. Jan 18, 2007
  22. Jan 14, 2007
  23. Jan 12, 2007
  24. Jan 10, 2007
  25. Jan 07, 2007
  26. Jan 06, 2007
  27. Jan 05, 2007
  28. Dec 29, 2006
  29. Dec 28, 2006
  30. 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
Loading