Skip to content
Snippets Groups Projects
  1. Apr 02, 2010
  2. Nov 22, 2009
    • Tom Lane's avatar
      Improve psql's tabular display of wrapped-around data by inserting markers · 1753337c
      Tom Lane authored
      in the formerly-always-blank columns just to left and right of the data.
      Different marking is used for a line break caused by a newline in the data
      than for a straight wraparound.  A newline break is signaled by a "+" in the
      right margin column in ASCII mode, or a carriage return arrow in UNICODE mode.
      Wraparound is signaled by a dot in the right margin as well as the following
      left margin in ASCII mode, or an ellipsis symbol in the same places in UNICODE
      mode.  "\pset linestyle old-ascii" is added to make the previous behavior
      available if anyone really wants it.
      
      In passing, this commit also cleans up a few regression test files that
      had unintended spacing differences from the current actual output.
      
      Roger Leigh, reviewed by Gabrielle Roth and other members of PDXPUG.
      1753337c
  3. Aug 04, 2009
  4. Jun 11, 2009
  5. Apr 15, 2009
  6. Mar 25, 2009
  7. May 17, 2008
    • Andrew Dunstan's avatar
      Add $PostgreSQL$ markers to a lot of files that were missing them. · 53972b46
      Andrew Dunstan authored
      This particular batch was just for *.c and *.h file.
      
      The changes were made with the following 2 commands:
      
      find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \) -prune \) -o  \( -name '*.[ch]'  \) \( -exec grep -q '\$PostgreSQL' {} \; -o -print \) | while read file ; do head -n 1 < $file | grep -q '^/\*' && echo $file; done | xargs -l sed -i -e '1s/^\// /' -e '1i/*\n * $PostgreSQL:$ \n *'
      
      find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \) -prune \) -o  \( -name '*.[ch]'  \) \( -exec grep -q '\$PostgreSQL' {} \; -o -print \) | xargs -l sed -i -e '1i/*\n * $PostgreSQL:$ \n */'
      53972b46
  8. May 04, 2008
  9. Mar 25, 2008
    • Tom Lane's avatar
      Simplify and standardize conversions between TEXT datums and ordinary C · 220db7cc
      Tom Lane authored
      strings.  This patch introduces four support functions cstring_to_text,
      cstring_to_text_with_len, text_to_cstring, and text_to_cstring_buffer, and
      two macros CStringGetTextDatum and TextDatumGetCString.  A number of
      existing macros that provided variants on these themes were removed.
      
      Most of the places that need to make such conversions now require just one
      function or macro call, in place of the multiple notational layers that used
      to be needed.  There are no longer any direct calls of textout or textin,
      and we got most of the places that were using handmade conversions via
      memcpy (there may be a few still lurking, though).
      
      This commit doesn't make any serious effort to eliminate transient memory
      leaks caused by detoasting toasted text objects before they reach
      text_to_cstring.  We changed PG_GETARG_TEXT_P to PG_GETARG_TEXT_PP in a few
      places where it was easy, but much more could be done.
      
      Brendan Jurd and Tom Lane
      220db7cc
  10. Feb 17, 2008
    • Tom Lane's avatar
      Replace time_t with pg_time_t (same values, but always int64) in on-disk · cd004067
      Tom Lane authored
      data structures and backend internal APIs.  This solves problems we've seen
      recently with inconsistent layout of pg_control between machines that have
      32-bit time_t and those that have already migrated to 64-bit time_t.  Also,
      we can get out from under the problem that Windows' Unix-API emulation is not
      consistent about the width of time_t.
      
      There are a few remaining places where local time_t variables are used to hold
      the current or recent result of time(NULL).  I didn't bother changing these
      since they do not affect any cross-module APIs and surely all platforms will
      have 64-bit time_t before overflow becomes an actual risk.  time_t should
      be avoided for anything visible to extension modules, however.
      cd004067
  11. Nov 15, 2007
  12. Nov 13, 2007
  13. Nov 11, 2007
  14. Sep 29, 2007
  15. Aug 23, 2007
    • Tom Lane's avatar
      Fix combo_decrypt() to throw an error for zero-length input when using a · b918bf86
      Tom Lane authored
      padded encryption scheme.  Formerly it would try to access res[(unsigned) -1],
      which resulted in core dumps on 64-bit machines, and was certainly trouble
      waiting to happen on 32-bit machines (though in at least the known case
      it was harmless because that byte would be overwritten after return).
      Per report from Ken Colson; fix by Marko Kreen.
      b918bf86
  16. Jul 16, 2007
  17. Jun 27, 2007
  18. Apr 06, 2007
  19. Mar 29, 2007
  20. 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
  21. Jan 14, 2007
  22. Nov 10, 2006
  23. Oct 04, 2006
  24. Sep 22, 2006
    • Tom Lane's avatar
      Fix bugs in plpgsql and ecpg caused by assuming that isspace() would only · beca984e
      Tom Lane authored
      return true for exactly the characters treated as whitespace by their flex
      scanners.  Per report from Victor Snezhko and subsequent investigation.
      
      Also fix a passel of unsafe usages of <ctype.h> functions, that is, ye olde
      char-vs-unsigned-char issue.  I won't miss <ctype.h> when we are finally
      able to stop using it.
      beca984e
  25. Sep 06, 2006
  26. Sep 05, 2006
  27. Aug 05, 2006
  28. Jul 19, 2006
    • Neil Conway's avatar
      pgcrypto merge cleanup: · c28fbd45
      Neil Conway authored
        - Few README fixes
        - Keep imath Id string, put $PostgreSQL$ separately.
      
      Patch from Marko Kreen.
      c28fbd45
  29. Jul 16, 2006
  30. Jul 15, 2006
  31. Jul 14, 2006
  32. Jul 13, 2006
    • Neil Conway's avatar
      Fix C++-style comment. · d0b54441
      Neil Conway authored
      d0b54441
    • Neil Conway's avatar
      "Annual" pgcrypto update from Marko Kreen: · 1abf76e8
      Neil Conway authored
      Few cleanups and couple of new things:
      
       - add SHA2 algorithm to older OpenSSL
       - add BIGNUM math to have public-key cryptography work on non-OpenSSL
         build.
       - gen_random_bytes() function
      
      The status of SHA2 algoritms and public-key encryption can now be
      changed to 'always available.'
      
      That makes pgcrypto functionally complete and unless there will be new
      editions of AES, SHA2 or OpenPGP standards, there is no major changes
      planned.
      1abf76e8
  33. Jul 11, 2006
  34. Jun 08, 2006
Loading