1. 20 Jun, 2006 1 commit
    • Tom Lane's avatar
      Split definitions for md5.c out of crypt.h and into their own header · 47a37aee
      Tom Lane authored
      libpq/md5.h, so that there's a clear separation between backend-only
      definitions and shared frontend/backend definitions.  (Turns out this
      is reversing a bad decision from some years ago...)  Fix up references
      to crypt.h as needed.  I looked into moving the code into src/port, but
      the headers in src/include/libpq are sufficiently intertwined that it
      seems more work than it's worth to do that.
      47a37aee
  2. 05 Mar, 2006 1 commit
  3. 20 Oct, 2005 1 commit
  4. 17 Oct, 2005 1 commit
  5. 15 Oct, 2005 1 commit
  6. 23 Feb, 2005 1 commit
    • Neil Conway's avatar
      This patch optimizes the md5_text() function (which is used to · 3350b374
      Neil Conway authored
      implement the md5() SQL-level function). The old code did the
      following:
      
      1. de-toast the datum
      2. convert it to a cstring via textout()
      3. get the length of the cstring via strlen()
      
      Since we are treating the datum context as a blob of binary data,
      the latter two steps are unnecessary. Once the data has been
      detoasted, we can just use it as-is, and derive its length from
      the varlena metadata.
      
      This patch improves some run-of-the-mill md5() computations by
      just under 10% in my limited tests, and passes the regression tests.
      
      I also noticed that md5_text() wasn't checking the return value
      of md5_hash(); encountering OOM at precisely the right moment
      could result in returning a random md5 hash. This patch corrects
      that. A better fix would be to make md5_hash() only return on
      success (and/or allocate via palloc()), but since it's used in
      the frontend as well I don't see an easy way to do that.
      3350b374
  7. 31 Dec, 2004 1 commit
    • PostgreSQL Daemon's avatar
      · 2ff50159
      PostgreSQL Daemon authored
      Tag appropriate files for rc3
      
      Also performed an initial run through of upgrading our Copyright date to
      extend to 2005 ... first run here was very simple ... change everything
      where: grep 1996-2004 && the word 'Copyright' ... scanned through the
      generated list with 'less' first, and after, to make sure that I only
      picked up the right entries ...
      2ff50159
  8. 27 Sep, 2004 1 commit
  9. 29 Aug, 2004 1 commit
  10. 19 Apr, 2004 1 commit
    • Bruce Momjian's avatar
      * Most changes are to fix warnings issued when compiling win32 · 31338352
      Bruce Momjian authored
      * removed a few redundant defines
      * get_user_name safe under win32
      * rationalized pipe read EOF for win32 (UPDATED PATCH USED)
      * changed all backend instances of sleep() to pg_usleep
      
          - except for the SLEEP_ON_ASSERT in assert.c, as it would exceed a
      32-bit long [Note to patcher: If a SLEEP_ON_ASSERT of 2000 seconds is
      acceptable, please replace with pg_usleep(2000000000L)]
      
      I added a comment to that part of the code:
      
          /*
           *  It would be nice to use pg_usleep() here, but only does 2000 sec
           *  or 33 minutes, which seems too short.
           */
          sleep(1000000);
      
      Claudio Natoli
      31338352
  11. 24 Mar, 2004 1 commit
  12. 29 Nov, 2003 1 commit
    • PostgreSQL Daemon's avatar
      · 969685ad
      PostgreSQL Daemon authored
      $Header: -> $PostgreSQL Changes ...
      969685ad
  13. 04 Aug, 2003 2 commits
  14. 03 Oct, 2002 1 commit
  15. 04 Sep, 2002 1 commit
  16. 20 Jun, 2002 1 commit
  17. 18 Nov, 2001 1 commit
  18. 13 Nov, 2001 3 commits
  19. 12 Nov, 2001 3 commits
  20. 25 Oct, 2001 1 commit
  21. 29 Sep, 2001 1 commit
  22. 27 Sep, 2001 1 commit
  23. 21 Sep, 2001 1 commit
  24. 25 Aug, 2001 1 commit
  25. 17 Aug, 2001 1 commit
  26. 15 Aug, 2001 3 commits